blob: dc90d35839f564ec6d601317780148f6e39ba735 (
plain)
1
2
3
4
5
6
7
8
9
10
|
/* 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" { xfail *-*-aix* } } } */
extern int foo __attribute__ ((visibility ("hidden")));
int *f () {
return &foo;
}
|