1 // RUN: %clangxx_msan -std=c++11 -O0 -g %s -o %t && %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
);