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