OSDN Git Service

cp:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / overload / template2.C
1 typedef int PyObject;
2 typedef PyObject *(*PyCFunction)(PyObject *, PyObject *);
3 template<class T> int _clear(PyObject* self);
4
5 void _typeInfo() 
6 {
7   reinterpret_cast<PyCFunction>(_clear); // { dg-error "overloaded function" }
8 }