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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.dg/] [template/] [ctor3.C] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
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.