diff --git a/test/as_to_python_function.cpp b/test/as_to_python_function.cpp new file mode 100644 index 00000000..814749d1 --- /dev/null +++ b/test/as_to_python_function.cpp @@ -0,0 +1,14 @@ +// Copyright David Abrahams 2002. Permission to copy, use, +// modify, sell and distribute this software is granted provided this +// copyright notice appears in all copies. This software is provided +// "as is" without express or implied warranty, and with no claim as +// to its suitability for any purpose. + +#include + +struct hopefully_illegal +{ + static PyObject* convert(int&); +}; + +PyObject* x = boost::python::converter::as_to_python_function::convert(0);