new tests

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4269 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2003-02-07 22:16:55 +00:00
commit 12f65db3be
3 changed files with 20 additions and 1 deletions

View file

@ -0,0 +1,13 @@
%module cast_operator
%inline %{
struct A
{
operator char*() const;
};
inline
A::operator char*() const
{ return "hi"; }
%}

View file

@ -43,7 +43,7 @@ DYNAMIC_LIB_PATH = $(RUNTIMEDIR):.
# C++ test cases. (Can be run individually using make testcase.cpptest.)
CPP_TEST_BROKEN = \
global_ns_arg \
cast_operator \
arrayref \
abstract_typedef \
namespace_nested \
@ -102,6 +102,7 @@ CPP_TEST_CASES += \
explicit \
extend_template \
extend_template_ns \
global_ns_arg \
grouping \
ignore_parameter \
import_nomodule \
@ -223,6 +224,7 @@ C_TEST_CASES += \
arrays \
char_constant \
const_const \
cpp_macro_noarg \
defineop \
defines \
enum \

View file

@ -0,0 +1,4 @@
%module cpp_macro_noarg
#define MACROWITHARG(x) something(x)
typedef int MACROWITHARG;