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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [repo3.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do link }
2
// { dg-options "-frepo" }
3
// Test that we properly generate the vtable and such for C.
4
// Contributed by scott snyder 
5
 
6
// Build then link:
7
 
8
struct A
9
{
10
  virtual ~A () {}
11
};
12
 
13
template 
14
struct B : virtual public A
15
{
16
  virtual void foo () {}
17
};
18
 
19
template 
20
struct C : virtual public A
21
{
22
};
23
 
24
template 
25
struct D : public B, public C
26
{
27
};
28
 
29
main ()
30
{
31
  D x;
32
}
33
 
34
// { dg-final { cleanup-repo-files } }

powered by: WebSVN 2.1.0

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