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 
main(void)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 }
16