URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [ext/] [visibility/] [noPLT.C] - Rev 816
Compare with Previous | Blame | View Log
/* 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|indirect_symbol.*methodEv" } } */
class Foo
{
public:
void method();
};
void Foo::method() { }
int main(void)
{
Foo f;
f.method();
return 0;
}