| 1 |
/* Test visibility attribute on definition of a function that has |
| 2 |
already had a forward declaration. */ |
| 3 |
/* { dg-require-visibility "" } |
| 4 |
/* { dg-final { scan-hidden "_Z3foov" } } */ |
| 5 |
|
| 6 |
void foo(); |
| 7 |
|
| 8 |
void |
| 9 |
__attribute__((visibility ("hidden"))) |
| 10 |
foo() |
| 11 |
{ } |