]>
git.proxmox.com Git - rustc.git/blob - src/compiler-rt/test/msan/sigwait.cc
1 // RUN: %clangxx_msan -std=c++11 -O0 -g %s -o %t && %run %t
4 #include <sanitizer/msan_interface.h>
12 sigaddset(&s
, SIGUSR1
);
13 sigprocmask(SIG_BLOCK
, &s
, 0);
15 if (pid_t pid
= fork()) {
20 int res
= sigwait(&s
, &sig
);
22 // The following checks that sig is initialized.
23 assert(sig
== SIGUSR1
);