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/] [pragma-override2.C] - Rev 825
Go to most recent revision | Compare with Previous | Blame | View Log
/* 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" } } */
#pragma GCC visibility push(hidden)
class Foo
{
__attribute__ ((visibility ("internal"))) void method();
};
#pragma GCC visibility pop
void Foo::method() { }
Go to most recent revision | Compare with Previous | Blame | View Log