repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
compiler-rt
/
test
/
msan
/
tzset.cpp
blob
05915e047e157456f1531a3f7f578e7e0779d1a1
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
(
tzname
[
0
]) || !
strlen
(
tzname
[
1
]))
11
exit
(
1
);
12
tzset
();
13
if
(!
strlen
(
tzname
[
0
]) || !
strlen
(
tzname
[
1
]))
14
exit
(
1
);
15
return
0
;
16
}