1 /* { dg-do compile } */ 2 /* { dg-require-weak "" } */ foo(void)3static 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" } */ 5