Sign in
cobalt
/
cobalt
/
56d7c4e1a836a7ef6e2823bffb8d1567758b82eb
/
.
/
third_party
/
llvm-project
/
compiler-rt
/
test
/
msan
/
strsignal.cpp
blob: 62b68e00b9e7193d92d0c4314e3a2b3040715cde [
file
] [
log
] [
blame
]
// 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
;
}