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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
// { dg-do run }
2
// { dg-options "-fabi-version=0 -w" }
3
 
4
struct E1 {};
5
struct E2 : public E1 {};
6
struct E : public E1, public E2 {};
7
struct N : public E { virtual void f () {} };
8
 
9
struct X : virtual public N {
10
};
11
 
12
int main () {
13
  X x;
14
  /* N should not be the primary base of X; it is not nearly empty.  */
15
  if ((void*)&x == (void*)(N*)&x)
16
    return 1;
17
}

powered by: WebSVN 2.1.0

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