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() { }