(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
attr-weakref-4.c
       1  /* { dg-do compile } */
       2  /* { dg-require-weak "" } */
       3  static void __attribute__((weakref("bar"))) foo(void) { } /* { dg-warning "attribute ignored because function is defined" } */
       4  static int __attribute__((weakref)) a=0; /* { dg-warning "attribute ignored because variable is initialized" } */