OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [ttp53.C] - Blame information for rev 305

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

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
 
3
// Submitted by Erez Louidor Lior 
4
 
5
template  class H;
6
template 
7
H foo(const H&);
8
 
9
template 
10
class H{
11
 
12
#ifdef OK
13
public:
14
#endif
15
  template class Caster, typename Source>
16
  static H cast(const H& s);
17
 
18
#ifndef OK
19
  template 
20
  friend H foo(const H&);
21
#endif
22
 
23
};
24
 
25
template  class caster;
26
 
27
template 
28
H foo(const H& s){
29
  return H::template cast(s);
30
}
31
 
32
int main(){
33
  H i;
34
  foo(i);
35
}

powered by: WebSVN 2.1.0

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