(root)/
gcc-13.2.0/
gcc/
testsuite/
c-c++-common/
asan/
pr59063-1.c
       1  /* { dg-do run { target { *-*-linux* *-*-freebsd* } } } */
       2  
       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);
      11  }