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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [abi/] [vbase12.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do run }
2
// { dg-options "-fabi-version=0" }
3
 
4
struct A {};
5
struct B { A a; virtual void f () {} };
6
struct C : public B, virtual public A {};
7
struct D : public C, virtual public A {};
8
 
9
D d;
10
 
11
int main () {
12
  if (((char*)(A*)&d - (char*)&d) != 0)
13
    return 1;
14
}

powered by: WebSVN 2.1.0

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