OSDN Git Service

Formatting fixes.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / memtemp52.C
1 // { dg-do assemble  }
2 // GROUPS passed templates membertemplates
3 template<class T, int N>
4 class A { };
5
6 template<int N>
7 struct X {
8     template<class T2, int N2>
9     void f(A<T2,N>&, A<int,N2>&)
10     { }
11 };
12
13
14 void foo()
15 {
16   X<3> x;
17   A<char*, 3> a1;
18   A<int, 2> a2;
19   x.f(a1, a2);
20 }