[libc] Switch to using the generic `<gpuintrin.h>` implementations (#121810)
[llvm-project.git] / compiler-rt / test / msan / ftime.cpp
blobd8ba8ca80b529df8d0f5467ff5b81a062504c175
1 // RUN: %clangxx_msan -O0 -g %s -o %t && %run %t
3 // ftime() is deprecated on FreeBSD and NetBSD.
4 // UNSUPPORTED: target={{.*(freebsd|netbsd).*}}
6 #include <assert.h>
7 #include <sys/timeb.h>
9 #include <sanitizer/msan_interface.h>
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;