[ASan/Win] Add a comment about DCL-using-static vs threads
[blocksruntime.git] / test / msan / ftime.cc
blob2d0935d18037ae550937cb772a077f50059a13ce
1 // RUN: %clangxx_msan -m64 -O0 -g %s -o %t && %run %t
3 #include <assert.h>
4 #include <sys/timeb.h>
6 #include <sanitizer/msan_interface.h>
8 int 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;