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/] [memtemp47.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 g(U u)
10
  { printf ("In S::g(U)\n"); }
11
 
12
  int c[16];
13
};
14
 
15
 
16
template 
17
struct T : public S
18
{
19
  template 
20
  void f(U u)
21
  { printf ("In T::f(U)\n"); g(u); }
22
};
23
 
24
int main()
25
{
26
  T t;
27
  t.f(3);
28
  t.f("adf");
29
}

powered by: WebSVN 2.1.0

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