Debian Codegraph @

gcc/testsuite/g++.dg/ext/visibility/arm1.C

raw
1 // { dg-do compile { target arm_eabi } }
2 // { dg-require-dll "" }
3 // { dg-options "-fvisibility=hidden" }
4 // Most class data should be exported.
5 // { dg-final { scan-not-hidden "_ZTV1S" } }
6 // { dg-final { scan-not-hidden "_ZTI1S" } }
7 // { dg-final { scan-not-hidden "_ZTS1S" } }
8 // { dg-final { scan-not-hidden "_ZTV1U" } }
9 // { dg-final { scan-not-hidden "_ZTT1U" } }
10 // { dg-final { scan-not-hidden "_ZTI1U" } }
11 // { dg-final { scan-not-hidden "_ZTS1U" } }
12 // The construction vtable should be hidden.
13 // { dg-final { scan-hidden "_ZTC1U0_1T" } }
14
15 struct S {
16 virtual void f();
17 };
18
19 void S::f() {
20 }
21
22 struct T : public virtual S {
23 virtual void g();
24 };
25
26 struct U : public virtual T {
27 virtual void h();
28 };
29
30 void U::h() {}