diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/ia64/visibility-2.c')
-rw-r--r-- | gcc/testsuite/gcc.target/ia64/visibility-2.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/ia64/visibility-2.c b/gcc/testsuite/gcc.target/ia64/visibility-2.c new file mode 100644 index 000000000..895ef6d91 --- /dev/null +++ b/gcc/testsuite/gcc.target/ia64/visibility-2.c @@ -0,0 +1,15 @@ +/* Test visibility attribute. */ +/* { dg-do link { target ia64*-*-linux* } } */ +/* { dg-options "-O2 -fpic" } */ + +int foo (int x); +int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden"))); +int bar (int x) +{ + return x; +} + +int main () +{ + return 0; +} |