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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [ctor3.C] - Blame information for rev 853

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

Line No. Rev Author Line
1 149 jeremybenn
struct A {};
2
struct B;
3
 
4
template  struct X: virtual A {
5
  template  X(TP2* ptr) {}
6
  template  X(const X) {}
7
};
8
 
9
struct Y : X {
10
  Y(A* a) : X(a) {}
11
};
12
 
13
void func1(X);
14
 
15
void func2() {
16
  A a;
17
  Y y(&a);
18
  func1(X(&a));
19
}

powered by: WebSVN 2.1.0

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