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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [abi/] [empty11.C] - Blame information for rev 841

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do run }
2
// { dg-options "-w -fabi-version=0" }
3
 
4
struct E {};
5
struct E2 : public E {};
6
struct E3 : public E, public E2 {};
7
struct E4 : public E, public E2, public E3 { };
8
struct E5 : public E, public E2, public E3, public E4 {};
9
 
10
struct S : public virtual E5 {
11
  E e;
12
};
13
 
14
S s;
15
 
16
int main () {
17
  if ((char*)(E4*)&s - (char*)&s == 0)
18
    return 1;
19
}

powered by: WebSVN 2.1.0

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