mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-04 16:26:46 +00:00
b8aae5405b
llvm-svn: 207709
15 lines
281 B
C++
15 lines
281 B
C++
// RUN: %clangxx_msan -m64 -O0 -g %s -o %t && %run %t
|
|
|
|
#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;
|
|
}
|