URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [overload2.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do link }
template <class T>
class ConstArray {
};
template <class T1, class T2>
void operator+(const ConstArray<T1>&, const ConstArray<T2>&)
{
}
template <class T1, class T2>
void operator+(const ConstArray<T1>&, T2);
template <class T1, class T2>
void operator+(T1, const ConstArray<T2>&);
const ConstArray<int> cai() { return ConstArray<int>(); }
const ConstArray<double> cad() { return ConstArray<double>(); }
int main()
{
cai () + cad ();
}