Sign in
cobalt
/
cobalt
/
ab1caa28c6012a666d3e308efe3749ea34f3b846
/
.
/
src
/
third_party
/
llvm-project
/
compiler-rt
/
test
/
sanitizer_common
/
TestCases
/
Linux
/
clock_gettime.c
blob: ec1386ef2414ccab6d9eab453e0ecff48e364cd5 [
file
] [
log
] [
blame
]
// RUN: %clang %s -Wl,-as-needed -o %t && %run %t
// Regression test for PR15823
// (http://llvm.org/bugs/show_bug.cgi?id=15823).
#include
<stdio.h>
#include
<time.h>
int
main
()
{
struct
timespec ts
;
clock_gettime
(
CLOCK_REALTIME
,
&
ts
);
return
0
;
}