blob: fbca4ed2a9bdf112c0249ea8bb23baec3e1b1b7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* Test that -fvisibility=hidden prevents PLT. */
/* { dg-do compile { target fpic } } */
/* { dg-require-visibility "" } */
/* { dg-options "-fPIC -fvisibility=hidden" } */
/* { dg-final { scan-assembler-not "methodEv@PLT" } } */
class Foo
{
public:
void method();
};
void Foo::method() { }
int main(void)
{
Foo f;
f.method();
return 0;
}
|