2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.robertl / eb14.C
blob0218a7eaacc15f9816dbc17a34a761e8f813f08a
1 // { dg-do run  }
3 extern "C" void abort ();
5 template<int N>
6 struct I {
7 };
9 template<class T>
10 struct A {
12   int r;
14   template<class T1, class T2>
15   void operator()(T1, T2)
16   { r = 0; }
18   template<int N1, int N2>
19   void operator()(I<N1>, I<N2>)
20   { r = 1; }
23 int main()
25     A<float> x;
26     I<0> a;
27     I<1> b;
29     x(a,b);
30     if (x.r != 1)
31         abort();
33     x(float(), double());
34     if (x.r != 0)
35         abort();
37     return 0;