llvm-project/compiler-rt/test/msan/strsignal.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
245 B
C++
Raw Normal View History

// 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;
}