1 // RUN: %clangxx_msan -O0 -g %s -o %t && %run %t
2 // RUN: %clangxx_msan -O0 -g -DUNINIT %s -o %t && not %run %t 2>&1 | FileCheck %s
7 #include <sanitizer/msan_interface.h>
20 time_t t
= mktime(&tm
);
21 // CHECK: MemorySanitizer: use-of-uninitialized-value
22 // CHECK: in main{{.*}}mktime.cpp:[[@LINE-2]]
24 assert(__msan_test_shadow(&tm
, sizeof(tm
)) == -1);