blob: af0d461c3d9eb0c5f694e6d8d54675c2defb9bc2 (
plain)
1
2
3
4
5
6
7
8
9
10
|
/* Test visibility attribute on forward declaration of global variable */
/* { dg-do compile } */
/* { dg-require-visibility "" } */
/* { dg-final { scan-hidden "xyzzy" } } */
extern int
__attribute__((visibility ("hidden")))
xyzzy;
int xyzzy = 5;
|