* gcc.dg/20061124-1.c: Add exit() function prototype.
[official-gcc.git] / gcc / testsuite / gcc.dg / attr-weakref-2.c
blob75cc0779c5771bba70da914d839207e984a506ba
1 /* { dg-do compile } */
2 /* { dg-require-weak "" } */
4 typedef int vtype;
6 extern vtype wv1;
7 extern vtype Wv1a __attribute__((weakref ("wv1"))); /* { dg-error "weakref 'Wv1a' must have static linkage" } */