FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.robertl / eb14.C
blob2a0fa52bd48d21de4200a033cc4ed28e343ee4ad
2 extern "C" void abort ();
4 template<int N>
5 struct I {
6 };
8 template<class T>
9 struct A {
11   int r;
13   template<class T1, class T2>
14   void operator()(T1, T2)
15   { r = 0; }
17   template<int N1, int N2>
18   void operator()(I<N1>, I<N2>)
19   { r = 1; }
22 int main()
24     A<float> x;
25     I<0> a;
26     I<1> b;
28     x(a,b);
29     if (x.r != 1)
30         abort();
32     x(float(), double());
33     if (x.r != 0)
34         abort();
36     return 0;