1 // RUN: %clangxx_msan -O0 %s -o %t && %run %t
5 #include <sanitizer/msan_interface.h>
10 int res
= pthread_setcancelstate(PTHREAD_CANCEL_DISABLE
, &oldstate
);
12 __msan_check_mem_is_initialized(&oldstate
, sizeof(oldstate
));
14 res
= pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED
, &oldtype
);
16 __msan_check_mem_is_initialized(&oldtype
, sizeof(oldtype
));