OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [overload2.C] - Rev 699

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 ();
}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.