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