Mercurial > hg > CbC > CbC_llvm
view compiler-rt/test/msan/sigaltstack.cpp @ 222:81f6424ef0e3 llvm-original
LLVM original branch
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 18 Jul 2021 22:10:01 +0900 |
parents | 0572611fdcc8 |
children |
line wrap: on
line source
// RUN: %clangxx_msan -O0 -g %s -o %t && %run %t // #include <signal.h> #include <assert.h> #include <sanitizer/msan_interface.h> int main(void) { stack_t old_ss; assert(sigaltstack(nullptr, &old_ss) == 0); __msan_check_mem_is_initialized(&old_ss, sizeof(stack_t)); return 0; }