URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.dg/] [ext/] [visibility/] [ms-compat-1.C] - Rev 516
Compare with Previous | Blame | View Log
/* { dg-require-visibility "" } */
/* { dg-options "-fvisibility-ms-compat" } */
/* { dg-final { scan-not-hidden "_ZTI1S" } } */
/* { dg-final { scan-hidden "_ZTI1T" } } */
/* { dg-final { scan-not-hidden "_ZTI1U" } } */
/* { dg-final { scan-not-hidden "_ZN1U6hide_4Ev" } } */
class S {
virtual void hide_2();
} hide_1;
void S::hide_2() {
}
class __attribute__((visibility("hidden"))) T {
virtual void hide_4();
} hide_3;
void T::hide_4() {
}
class __attribute__((visibility("default"))) U {
virtual void hide_4();
};
void U::hide_4() {
}