mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-21 02:36:39 +00:00
14 lines
245 B
C++
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;
|
|
}
|