2015-03-03 03:34:27 +08:00
|
|
|
// RUN: %clangxx_msan -O0 -g %s -o %t && %run %t
|
2014-03-28 16:33:32 +08:00
|
|
|
|
2017-12-09 08:36:17 +08:00
|
|
|
// ftime() is deprecated on FreeBSD and NetBSD.
|
|
|
|
// UNSUPPORTED: freebsd, netbsd
|
2015-04-24 15:54:38 +08:00
|
|
|
|
2014-03-28 16:33:32 +08:00
|
|
|
#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;
|
|
|
|
}
|