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(x: &old_ss, size: sizeof(stack_t)); |
13 | |
14 | return 0; |
15 | } |
16 |