blob: bce2aac5512a1a6ba1893b8d2acabfae18725b9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/* { 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() {
}
|