summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp52.C
blob: f8ae906189cefe39df3e060a863ba665ae54672e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// { dg-do assemble  }
// GROUPS passed templates membertemplates
template<class T, int N>
class A { };

template<int N>
struct X {
    template<class T2, int N2>
    void f(A<T2,N>&, A<int,N2>&)
    { }
};


void foo()
{
  X<3> x;
  A<char*, 3> a1;
  A<int, 2> a2;
  x.f(a1, a2);
}