new tests

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4269 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2003-02-07 22:16:55 +00:00
commit 08705104df
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.) # C++ test cases. (Can be run individually using make testcase.cpptest.)
CPP_TEST_BROKEN = \ CPP_TEST_BROKEN = \
global_ns_arg \ cast_operator \
arrayref \ arrayref \
abstract_typedef \ abstract_typedef \
namespace_nested \ namespace_nested \
@ -102,6 +102,7 @@ CPP_TEST_CASES += \
explicit \ explicit \
extend_template \ extend_template \
extend_template_ns \ extend_template_ns \
global_ns_arg \
grouping \ grouping \
ignore_parameter \ ignore_parameter \
import_nomodule \ import_nomodule \
@ -223,6 +224,7 @@ C_TEST_CASES += \
arrays \ arrays \
char_constant \ char_constant \
const_const \ const_const \
cpp_macro_noarg \
defineop \ defineop \
defines \ defines \
enum \ enum \

View file

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