repo.or.cz
/
blocksruntime.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[ASan/Win] Add a comment about DCL-using-static vs threads
[blocksruntime.git]
/
test
/
msan
/
tzset.cc
blob
ed61d7bcc4497a2aadc40895723c16ae20cc21b7
1
// RUN: %clangxx_msan -m64 -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
}