* g++.dg/ext/visibility/class1.C: Port to Darwin.
[official-gcc.git] / gcc / testsuite / g++.dg / ext / visibility / noPLT.C
blob38af05fd6e355724155f4d92b3e2e2b77f4e7f31
1 /* Test that -fvisibility=hidden prevents PLT. */
2 /* { dg-do compile { target fpic } } */
3 /* { dg-require-visibility "" } */
4 /* { dg-options "-fPIC -fvisibility=hidden" } */
5 /* { dg-final { scan-assembler-not "methodEv@PLT|indirect_symbol.*methodEv" } } */
7 class Foo
9 public:
10   void method();
13 void Foo::method() { }
15 int main(void)
17   Foo f;
18   f.method();
19   return 0;