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