1 /* Test that #pragma GCC visibility does not override class member specific settings. */
2 /* { dg-do compile } */
3 /* { dg-require-visibility "internal" } */
4 /* { dg-final { scan-assembler "\\.internal.*Foo.methodEv" { target { ! *-*-solaris2* } } } } */
5 /* { dg-final { scan-assembler "\\.(internal|hidden).*Foo.methodEv" { target *-*-solaris2* } } } */
7 #pragma GCC visibility push(hidden)
10 __attribute__ ((visibility ("internal"))) void method();
12 #pragma GCC visibility pop
14 void Foo::method() { }