summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/visibility/visibility-4.C
blob: f6765958709412a07c01a87f9511e1483e533423 (plain)
1
2
3
4
5
6
7
8
/* Test visibility attribute on forward declaration of global variable */
/* { dg-require-visibility "" }
/* { dg-final { scan-hidden "xyzzy" } } */

extern int __attribute__ ((visibility ("hidden")))
xyzzy;

int xyzzy = 5;