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/] [abi/] [empty7.C] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
// { dg-do run { target i?86-*-* x86_64-*-* } }
2
// { dg-require-effective-target ilp32 }
3
// { dg-options "-fabi-version=0" }
4
 
5
struct S1 {};
6
struct S2 { virtual void f () {} S1 s1[4]; };
7
struct S3 : virtual public S2 {};
8
struct S4 : virtual public S2 { int i; };
9
struct S5 : public S3, virtual public S4 {};
10
struct S6 { S5 s5; };
11
struct S7 { S1 s1[5]; };
12
struct S8 : public S1, public S6, virtual public S7 { };
13
 
14
S8 s8;
15
 
16
int main () {
17
  if ((char *)(S7 *)&s8 - (char *)&s8 != 24)
18
    return 1;
19
}

powered by: WebSVN 2.1.0

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