URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [ext/] [visibility/] [ms-compat-1.C] - Rev 301
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() {
}