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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [init/] [new9.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// PR 12337
2
 
3
class A {};
4
 
5
template 
6
class X : public A {
7
public:
8
  X(T&);
9
};
10
 
11
class B {
12
public:
13
  bool foo(A*);
14
  template 
15
  bool foo(T& t) { return foo(new X(t)); }
16
};
17
 
18
int main()
19
{
20
  B x, y;
21
  x.foo(y);
22
}

powered by: WebSVN 2.1.0

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