2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / visibility-3.c
blobe0bf01fb130a16aab2afab2cff3bac836efe9efd
1 /* Test visibility attribute on forward declaration of global variable */
2 /* { dg-do compile } */
3 /* { dg-require-visibility "" } */
4 /* { dg-final { scan-assembler "\\.hidden.*xyzzy" } } */
6 int
7 __attribute__((visibility ("hidden")))
8 xyzzy = 5;