OSDN Git Service

* treelang/compile/var_defs.tree: Adjust.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.robertl / eb14.C
1 // { dg-do run  }
2
3 extern "C" void abort ();
4
5 template<int N>
6 struct I {
7 };
8
9 template<class T>
10 struct A {
11
12   int r;
13
14   template<class T1, class T2>
15   void operator()(T1, T2)
16   { r = 0; }
17
18   template<int N1, int N2>
19   void operator()(I<N1>, I<N2>)
20   { r = 1; }
21 };
22
23 int main()
24 {
25     A<float> x;
26     I<0> a;
27     I<1> b;
28
29     x(a,b);
30     if (x.r != 1)
31         abort();
32
33     x(float(), double());
34     if (x.r != 0)
35         abort();
36
37     return 0;
38 }
39
40