blob: f54c73b198a14a9b388f2d336525a38b54429466 (
plain)
1
2
3
4
5
6
7
8
|
/* Test that external variable whose address is taken are marked. */
/* { dg-do compile } */
/* { dg-skip-if "" { *-*-darwin* } { "*" } { "" } } */
/* { dg-require-visibility "" } */
/* { dg-final { scan-hidden "foo" } } */
extern int foo __attribute__ ((visibility ("hidden")));
int *test = &foo;
|