Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / msan / tzset.cpp
blob05915e047e157456f1531a3f7f578e7e0779d1a1
1 // RUN: %clangxx_msan -O0 %s -o %t && %run %t
3 #include <stdlib.h>
4 #include <string.h>
5 #include <time.h>
7 extern char *tzname[2];
9 int main(void) {
10 if (!strlen(tzname[0]) || !strlen(tzname[1]))
11 exit(1);
12 tzset();
13 if (!strlen(tzname[0]) || !strlen(tzname[1]))
14 exit(1);
15 return 0;