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
/
ftime.cc
blob
2d0935d18037ae550937cb772a077f50059a13ce
1
// RUN: %clangxx_msan -m64 -O0 -g %s -o %t && %run %t
2
3
#include <assert.h>
4
#include <sys/timeb.h>
5
6
#include <sanitizer/msan_interface.h>
7
8
int
main
(
void
) {
9
struct
timeb tb
;
10
int
res
=
ftime
(&
tb
);
11
assert
(!
res
);
12
assert
(
__msan_test_shadow
(&
tb
,
sizeof
(
tb
)) == -
1
);
13
return
0
;
14
}