repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
compiler-rt
/
test
/
msan
/
strsignal.cpp
blob
62b68e00b9e7193d92d0c4314e3a2b3040715cde
1
// RUN: %clangxx_msan -O0 %s -o %t && %run %t
2
3
#include <assert.h>
4
#include <signal.h>
5
#include <stdio.h>
6
#include <string.h>
7
8
int
main
(
void
) {
9
const char
*
p
=
strsignal
(
SIGSEGV
);
10
assert
(
p
);
11
printf
(
"%s %zu
\n
"
,
p
,
strlen
(
p
));
12
return
0
;
13
}