Update ChangeLog and version files for release
[official-gcc.git] / gcc / testsuite / c-c++-common / asan / pr59063-2.c
blob759b7f24d09b39829c4bbc4d7557a4251216630e
1 /* { dg-do run { target { *-*-linux* } } } */
2 /* { dg-options "-static-libasan" } */
4 #include <time.h>
5 static int weak_gettime (clockid_t clk_id, struct timespec *tp)
6 __attribute__((__weakref__("clock_gettime")));
7 int main() {
8 if (!clock_gettime)
9 return 0;
10 struct timespec ts;
11 return weak_gettime(CLOCK_MONOTONIC, &ts);