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

Subversion Repositories openrisc

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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do link }
2
// { dg-options "-frepo" }
3
// { dg-require-host-local "" }
4
// { dg-skip-if "dkms are not final links" { vxworks_kernel } }
5
 
6
// Test that we properly generate the vtable and such for C.
7
// Contributed by scott snyder 
8
 
9
// Build then link:
10
 
11
struct A
12
{
13
  virtual ~A () {}
14
};
15
 
16
template 
17
struct B : virtual public A
18
{
19
  virtual void foo () {}
20
};
21
 
22
template 
23
struct C : virtual public A
24
{
25
};
26
 
27
template 
28
struct D : public B, public C
29
{
30
};
31
 
32
main ()
33
{
34
  D x;
35
}
36
 
37
// { 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.