blob: 0977abac2b8d47926bdd80f613a78eadd416ae2e (
plain)
1
2
3
4
5
6
7
8
9
10
|
/* Test that visibility attribute on declaration extends to definition. */
/* { dg-do compile } */
/* { dg-require-visibility "" } */
/* { dg-final { scan-hidden "foo" } } */
void
__attribute__((visibility ("hidden")))
foo();
void foo() { }
|