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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
// { dg-options "" }
3
 
4
template 
5
void f(T);
6
template <>
7
void f(int) {}
8
 
9
struct B {
10
  typedef int I;
11
};
12
 
13
template 
14
struct D1 : virtual public B {
15
  typedef T I;
16
};
17
 
18
 
19
template 
20
struct D : virtual public B, public D1
21
{
22
  void g()
23
    {
24
      I i;
25
      f(i);
26
    }
27
};
28
 
29
int
30
main()
31
{
32
  D d;
33
  d.g();
34
}
35
 

powered by: WebSVN 2.1.0

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