2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / memtemp53.C
blob688f480d07fc633fd74a68538ad81ba4b206388a
1 // { dg-do link  }
2 // GROUPS passed templates membertemplates
3 template<int N>
4 struct I {
5 };
7 template<class T>
8 struct A {
10   int r;
12   template<class T1, class T2>
13   void operator()(T1, T2)
14   { r = 0; }
16   template<int N1, int N2>
17   void operator()(I<N1>, I<N2>)
18   { r = 1; }
21 int main()
23     A<float> x;
24     I<0> a;
25     I<1> b;
27     x(a,b);
28     if (x.r != 1)
29         return 1;
31     x(float(), double());
32     if (x.r != 0)
33         return 1;
35     return 0;