OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.dg/] [abi/] [empty11.C] - Blame information for rev 384

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 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.