Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / msan / sigaltstack.cpp
blobc1b8b7eefee163395977be2b0b693ede6bc46ca8
1 // RUN: %clangxx_msan -O0 -g %s -o %t && %run %t
2 //
3 #include <signal.h>
4 #include <assert.h>
6 #include <sanitizer/msan_interface.h>
8 int main(void) {
9 stack_t old_ss;
11 assert(sigaltstack(nullptr, &old_ss) == 0);
12 __msan_check_mem_is_initialized(&old_ss, sizeof(stack_t));
14 return 0;