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" } } */
6 #pragma GCC visibility push(hidden)
9 __attribute__ ((visibility ("internal"))) void method();
11 #pragma GCC visibility pop
13 void Foo::method() { }