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
/
sigaltstack.cpp
blob
c1b8b7eefee163395977be2b0b693ede6bc46ca8
1
// RUN: %clangxx_msan -O0 -g %s -o %t && %run %t
2
//
3
#include <signal.h>
4
#include <assert.h>
5
6
#include <sanitizer/msan_interface.h>
7
8
int
main
(
void
) {
9
stack_t old_ss
;
10
11
assert
(
sigaltstack
(
nullptr
, &
old_ss
) ==
0
);
12
__msan_check_mem_is_initialized
(&
old_ss
,
sizeof
(
stack_t
));
13
14
return
0
;
15
}