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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do link  }
2
// GROUPS passed templates membertemplates
3
extern "C" int printf(const char*, ...);
4
 
5
template 
6
struct S
7
{
8
  template 
9
  void f(U u);
10
 
11
  template 
12
  void g(U u);
13
 
14
  int c[16];
15
};
16
 
17
template 
18
template 
19
void S::f(U u)
20
  { printf ("In S::f(U)\n"); g(u); }
21
 
22
template 
23
template 
24
void S::g(U u)
25
  { printf ("In S::g(U)\n"); }
26
 
27
int main()
28
{
29
  S s;
30
  s.f(3);
31
  s.f("adf");
32
}

powered by: WebSVN 2.1.0

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