blob: 1a0b3ca37dac05aceb0594fa38d991673713e20f [file] [log] [blame]
/* Test visibility attribute on forward declaration of global variable */
/* { dg-do compile } */
/* { dg-require-visibility "" } */
/* { dg-final { scan-assembler "\\.hidden.*xyzzy" } } */
extern int
__attribute__((visibility ("hidden")))
xyzzy;
int xyzzy = 5;