new tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4269 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b7736951d6
commit
12f65db3be
3 changed files with 20 additions and 1 deletions
13
SWIG/Examples/test-suite/cast_operator.i
Normal file
13
SWIG/Examples/test-suite/cast_operator.i
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
%module cast_operator
|
||||
%inline %{
|
||||
struct A
|
||||
{
|
||||
operator char*() const;
|
||||
};
|
||||
|
||||
inline
|
||||
A::operator char*() const
|
||||
{ return "hi"; }
|
||||
|
||||
%}
|
||||
|
||||
|
|
@ -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 \
|
||||
|
|
|
|||
4
SWIG/Examples/test-suite/cpp_macro_noarg.i
Normal file
4
SWIG/Examples/test-suite/cpp_macro_noarg.i
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
%module cpp_macro_noarg
|
||||
#define MACROWITHARG(x) something(x)
|
||||
|
||||
typedef int MACROWITHARG;
|
||||
Loading…
Add table
Add a link
Reference in a new issue