Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git] / gcc / testsuite / gcc.dg / visibility-6.c
blob4e9deebec373d5ae161871c920d24c89285f101f
1 /* Test visibility attribute on definition of global variable that has
2 already had a forward declaration. */
3 /* { dg-do compile } */
4 /* { dg-require-visibility "" } */
5 /* { dg-final { scan-hidden "xyzzy" } } */
7 extern int xyzzy;
9 int
10 __attribute__((visibility ("hidden")))
11 xyzzy = 5;