gcc/testsuite/gcc.dg/visibility-20.c
raw| 1 | /* PR target/39175 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-require-visibility "" } */ |
| 4 | /* { dg-options "-O2 -fvisibility=hidden -fpic" { target fpic } } */ |
| 5 | |
| 6 | __attribute__((noinline)) int |
| 7 | foo (int x) |
| 8 | { |
| 9 | return x; |
| 10 | } |
| 11 | |
| 12 | int foo (int x); |
| 13 | |
| 14 | int |
| 15 | bar (int x) |
| 16 | { |
| 17 | return foo (x); |
| 18 | } |