PR c++/85662
[official-gcc.git] / gcc / testsuite / c-c++-common / asan / pr59063-1.c
bloba22db6a0d8288809dd811151c957e44c49a7af84
1 /* { dg-do run { target { *-*-linux* } } } */
3 #include <time.h>
4 static int weak_gettime (clockid_t clk_id, struct timespec *tp)
5 __attribute__((__weakref__("clock_gettime")));
6 int main() {
7 if (!clock_gettime)
8 return 0;
9 struct timespec ts;
10 return weak_gettime(CLOCK_MONOTONIC, &ts);