Debian Codegraph @

gcc/testsuite/g++.dg/ext/visibility/noPLT.C

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