URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.dg/] [ext/] [visibility/] [fvisibility-override1.C] - Rev 12
Compare with Previous | Blame | View Log
/* Test that -fvisibility does not override class member specific settings. */
/* { dg-do compile } */
/* { dg-require-visibility "" } */
/* { dg-options "-fvisibility=hidden" } */
/* { dg-final { scan-not-hidden "methodEv" } } */
class __attribute__ ((visibility ("default"))) Foo
{
void method();
};
void Foo::method() { }