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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [init/] [new9.C] - Blame information for rev 316

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

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