You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
332 B
18 lines
332 B
// RUN: %clangxx_msan -O0 -g %s -o %t && %run %t
|
|
|
|
// ftime() is deprecated on FreeBSD.
|
|
// XFAIL: freebsd
|
|
|
|
#include <assert.h>
|
|
#include <sys/timeb.h>
|
|
|
|
#include <sanitizer/msan_interface.h>
|
|
|
|
int main(void) {
|
|
struct timeb tb;
|
|
int res = ftime(&tb);
|
|
assert(!res);
|
|
assert(__msan_test_shadow(&tb, sizeof(tb)) == -1);
|
|
return 0;
|
|
}
|