OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.dg/] [ext/] [visibility/] [arm1.C] - Blame information for rev 12

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.