Summary: ftime(3) has been removed from libc/NetBSD. Sponsored by <The NetBSD Foundation> Reviewers: joerg, eugenis, vitalybuka Reviewed By: vitalybuka Subscribers: llvm-commits, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D41018 llvm-svn: 320222
18 lines
357 B
C++
18 lines
357 B
C++
// RUN: %clangxx_msan -O0 -g %s -o %t && %run %t
|
|
|
|
// ftime() is deprecated on FreeBSD and NetBSD.
|
|
// UNSUPPORTED: 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;
|
|
}
|