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

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

Line No. Rev Author Line
1 149 jeremybenn
// PR c++/27640
2
 
3
template < class T > struct refcounted :
4
virtual T
5
{
6
  template < class A1 > refcounted (const A1 & a1) : T () { }
7
};
8
struct nfsserv {};
9
template < class T >
10
void
11
sfsserver_cache_alloc (int *ns)
12
{
13
  new refcounted < nfsserv > (*ns);
14
}
15
void
16
usage ()
17
{
18
  sfsserver_cache_alloc < int > ( 0);
19
}

powered by: WebSVN 2.1.0

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