gcc/gcc/testsuite/gcc.dg/attr-weakref-3.c

4 lines
148 B
C

/* { dg-do compile } */
/* { dg-require-weak "" } */
static int i __attribute__ ((weakref)); /* { dg-warning "attribute should be accompanied" } */