summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/visibility-1.c
blob: 864b971dd64c3ca9da11dcca317dc8891b1a77f6 (plain)
1
2
3
4
5
6
7
8
9
/* Test visibility attribute on function definition. */
/* { dg-do compile } */
/* { dg-require-visibility "" } */
/* { dg-final { scan-hidden "foo" } } */

void
__attribute__((visibility ("hidden")))
foo()
{ }