| 1 | // RUN: %clangxx_msan -O0 %s -o %t && %run %t |
|---|---|
| 2 | |
| 3 | #include <stdlib.h> |
| 4 | #include <string.h> |
| 5 | #include <time.h> |
| 6 | |
| 7 | extern char *tzname[2]; |
| 8 | |
| 9 | int main(void) { |
| 10 | if (!strlen(s: tzname[0]) || !strlen(s: tzname[1])) |
| 11 | exit(status: 1); |
| 12 | tzset(); |
| 13 | if (!strlen(s: tzname[0]) || !strlen(s: tzname[1])) |
| 14 | exit(status: 1); |
| 15 | return 0; |
| 16 | } |
| 17 |
