Paul Robinson 02012a78b8 [msan] Convert tests to check 'target=...'
Part of the project to eliminate special handling for triples in lit
expressions.
2022-12-19 06:44:42 -08:00

18 lines
373 B
C++

// RUN: %clangxx_msan -O0 -g %s -o %t && %run %t
// ftime() is deprecated on FreeBSD and NetBSD.
// UNSUPPORTED: target={{.*(freebsd|netbsd).*}}
#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;
}