Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git] / gcc / testsuite / gcc.dg / visibility-a.c
blob23a51d7e5a4ebea0e1c08111f6ad6b0a765eb2f4
1 /* Test that #pragma GCC visibility works. */
2 /* { dg-do compile } */
3 /* { dg-require-visibility "" } */
4 /* { dg-final { scan-hidden "foo" } } */
6 #pragma GCC visibility push(hidden)
7 void foo();
8 #pragma GCC visibility pop
10 void foo() { }