1 // RUN: %clangxx_msan -std=c++11 -O0 -g %s -o %t && not %run %t 2>&1 | FileCheck %s
2 // RUN: %clangxx_msan -DLEFT_OK -std=c++11 -O0 -g %s -o %t && not %run %t 2>&1 | FileCheck %s
3 // RUN: %clangxx_msan -DRIGHT_OK -std=c++11 -O0 -g %s -o %t && not %run %t 2<&1 | FileCheck %s
4 // RUN: %clangxx_msan -DLEFT_OK -DRIGHT_OK -std=c++11 -O0 -g %s -o %t && %run %t
8 #include <sanitizer/msan_interface.h>
22 // CHECK: MemorySanitizer: use-of-uninitialized-value
23 // CHECK-NEXT: in main {{.*}}sigandorset.cpp:[[@LINE+1]]
24 sigandset(&s
, &t
, &u
);
26 __msan_check_mem_is_initialized(&s
, sizeof s
);