1// RUN: %clangxx_msan -m64 -O0 -g %s -o %t && %run %t 2 3#include <assert.h> 4#include <sys/timeb.h> 5 6#include <sanitizer/msan_interface.h> 7 8int main(void) { 9 struct timeb tb; 10 int res = ftime(&tb); 11 assert(!res); 12 assert(__msan_test_shadow(&tb, sizeof(tb)) == -1); 13 return 0; 14} 15