OSDN Git Service

PR tree-optimization/52019
[pf3gnuchains/gcc-fork.git] / 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" } */