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
[libc] Switch to using the generic `<gpuintrin.h>` implementations (#121810)
[llvm-project.git]
/
compiler-rt
/
test
/
msan
/
ftime.cpp
blob
d8ba8ca80b529df8d0f5467ff5b81a062504c175
1
// RUN: %clangxx_msan -O0 -g %s -o %t && %run %t
2
3
// ftime() is deprecated on FreeBSD and NetBSD.
4
// UNSUPPORTED: target={{.*(freebsd|netbsd).*}}
5
6
#include <assert.h>
7
#include <sys/timeb.h>
8
9
#include <sanitizer/msan_interface.h>
10
11
int
main
(
void
) {
12
struct
timeb tb
;
13
int
res
=
ftime
(&
tb
);
14
assert
(!
res
);
15
assert
(
__msan_test_shadow
(&
tb
,
sizeof
(
tb
)) == -
1
);
16
return
0
;
17
}