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/] [template-id-1.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// Copyright (C) 2002 Free Software Foundation
2
// Origin: C++/1058
3
// Contributed by Gabriel Dos Reis 
4
// { dg-do compile }
5
 
6
struct A {
7
   typedef int Y;
8
   typedef double Z;
9
};
10
 
11
struct B {
12
   template
13
   void func(typename T::Y, typename T::Z) { }
14
};
15
 
16
template
17
struct X {
18
   void gunc();
19
};
20
 
21
template
22
void X::gunc()
23
{
24
   B b;
25
   b.func(0, 3.);
26
}
27
 
28
int main()
29
{
30
   X x;
31
   x.gunc();
32
   return 0;
33
}

powered by: WebSVN 2.1.0

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