| 1 |
/* Test visibility attribute. */ |
| 2 |
/* { dg-do link { target ia64*-*-linux* } } */ |
| 3 |
/* { dg-options "-O2 -fpic" } */ |
| 4 |
|
| 5 |
int foo (int x); |
| 6 |
int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden"))); |
| 7 |
int bar (int x) |
| 8 |
{ |
| 9 |
return x; |
| 10 |
} |
| 11 |
|
| 12 |
int main () |
| 13 |
{ |
| 14 |
return 0; |
| 15 |
} |