summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/overload/template2.C
blob: e7bdaa74b8cfab2f5ecd29d1aac03331fd345ad9 (plain)
1
2
3
4
5
6
7
8
typedef int PyObject;
typedef PyObject *(*PyCFunction)(PyObject *, PyObject *);
template<class T> int _clear(PyObject* self);

void _typeInfo() 
{
  reinterpret_cast<PyCFunction>(_clear); // { dg-error "overloaded function" }
}