summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/visibility-9.c
blob: 9d575168491ba4ad61cbbf42ce6a72076036f5ab (plain)
1
2
3
4
5
6
7
8
9
/* Test that -fvisibility works. */
/* { dg-do compile } */
/* { dg-require-visibility "" } */
/* { dg-options "-fvisibility=hidden" } */
/* { dg-final { scan-hidden "foo" } } */

void foo();

void foo() { }