summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/visibility/arm1.C
blob: 2c2e3d0664a0e722dbefe8837161a043d2ecdc67 (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
29
30
// { dg-do compile { target arm*-*-eabi* arm*-*-symbianelf* } }
// { dg-require-dll "" }
// { dg-options "-fvisibility=hidden" }
// Most class data should be exported.
// { dg-final { scan-not-hidden "_ZTV1S" } }
// { dg-final { scan-not-hidden "_ZTI1S" } }
// { dg-final { scan-not-hidden "_ZTS1S" } }
// { dg-final { scan-not-hidden "_ZTV1U" } }
// { dg-final { scan-not-hidden "_ZTT1U" } }
// { dg-final { scan-not-hidden "_ZTI1U" } }
// { dg-final { scan-not-hidden "_ZTS1U" } }
// The construction vtable should be hidden.
// { dg-final { scan-hidden "_ZTC1U0_1T" } }

struct S {
  virtual void f();
};

void S::f() {
}

struct T : public virtual S {
  virtual void g();
};

struct U : public virtual T {
  virtual void h();
};

void U::h() {}