bolt/deps/llvm-18.1.8/compiler-rt/test/msan/tzset.cpp

17 lines
295 B
C++
Raw Normal View History

2025-02-14 19:21:04 +01:00
// RUN: %clangxx_msan -O0 %s -o %t && %run %t
#include <stdlib.h>
#include <string.h>
#include <time.h>
extern char *tzname[2];
int main(void) {
if (!strlen(tzname[0]) || !strlen(tzname[1]))
exit(1);
tzset();
if (!strlen(tzname[0]) || !strlen(tzname[1]))
exit(1);
return 0;
}