summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/visibility-a.c
blob: 23a51d7e5a4ebea0e1c08111f6ad6b0a765eb2f4 (plain)
1
2
3
4
5
6
7
8
9
10
/* Test that #pragma GCC visibility works. */
/* { dg-do compile } */
/* { dg-require-visibility "" } */
/* { dg-final { scan-hidden "foo" } } */

#pragma GCC visibility push(hidden)
void foo();
#pragma GCC visibility pop

void foo() { }