Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / attr-weakref-4.c
blobdf5fdebdc408a5b9d09d1550473ee4939715cdbf
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" } */