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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.abi/] [primary2.C] - Blame information for rev 699

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do run  }
2
// Copyright (C) 2000 Free Software Foundation, Inc.
3
// Contributed by Nathan Sidwell 4 February 2001 
4
 
5
// Check primary bases are chosen correctly.
6
 
7
struct A {virtual void Foo () {}};
8
struct B : virtual A {};
9
struct C : virtual B {};
10
struct D : virtual B, virtual C {};
11
 
12
int main ()
13
{
14
  D d;
15
 
16
#if __GXX_ABI_VERSION >= 100
17
  if (sizeof (D) != sizeof (A))
18
    return 1;
19
#endif
20
 
21
  return 0;
22
}

powered by: WebSVN 2.1.0

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