Vitaly Buka c046cff1cf [msan] strsignal interceptor
Reviewed By: kstoimenov

Differential Revision: https://reviews.llvm.org/D120082
2022-02-17 18:13:35 -08:00

14 lines
245 B
C++

// RUN: %clangxx_msan -O0 %s -o %t && %run %t
#include <assert.h>
#include <signal.h>
#include <stdio.h>
#include <string.h>
int main(void) {
const char *p = strsignal(SIGSEGV);
assert(p);
printf("%s %zu\n", p, strlen(p));
return 0;
}