2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / overload2.C
blob88fe0a218642a5aa76c99c0578119e5c5aa97eb0
1 // { dg-do link  }
3 template <class T>
4 class ConstArray {
5 };
7 template <class T1, class T2>
8 void operator+(const ConstArray<T1>&, const ConstArray<T2>&)
12 template <class T1, class T2>
13 void operator+(const ConstArray<T1>&, T2);
15 template <class T1, class T2>
16 void operator+(T1, const ConstArray<T2>&);
18 const ConstArray<int> cai() { return ConstArray<int>(); }
19 const ConstArray<double> cad() { return ConstArray<double>(); }
21 int main()
23   cai () + cad ();