From 409ff3c1796cac979f287fa216f6435eb06fa2a3 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Wed, 20 Nov 2002 03:04:51 +0000 Subject: [PATCH] Added missing test [SVN r16337] --- test/as_to_python_function.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/as_to_python_function.cpp 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);