missing method bodies added to valuewrapper_default testcase
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4972 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
02f3bfdbf4
commit
34fe6dfd9a
2 changed files with 4 additions and 4 deletions
|
|
@ -48,8 +48,7 @@ CPP_TEST_BROKEN += \
|
||||||
template_default_arg \
|
template_default_arg \
|
||||||
template_specialization_defarg \
|
template_specialization_defarg \
|
||||||
template_specialization_enum \
|
template_specialization_enum \
|
||||||
using_namespace \
|
using_namespace
|
||||||
valuewrapper_default
|
|
||||||
|
|
||||||
# Broken C test cases. (Can be run individually using make testcase.ctest.)
|
# Broken C test cases. (Can be run individually using make testcase.ctest.)
|
||||||
C_TEST_BROKEN +=
|
C_TEST_BROKEN +=
|
||||||
|
|
@ -244,6 +243,7 @@ CPP_TEST_CASES += \
|
||||||
valuewrapper \
|
valuewrapper \
|
||||||
valuewrapper_base \
|
valuewrapper_base \
|
||||||
valuewrapper_const \
|
valuewrapper_const \
|
||||||
|
valuewrapper_default \
|
||||||
varargs \
|
varargs \
|
||||||
virtual_destructor \
|
virtual_destructor \
|
||||||
voidtest
|
voidtest
|
||||||
|
|
|
||||||
|
|
@ -6,13 +6,13 @@ enum MyType { Val1, Val2 };
|
||||||
class MyClass1
|
class MyClass1
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MyClass1(MyType myType);
|
MyClass1(MyType myType) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
class MyClass2
|
class MyClass2
|
||||||
{
|
{
|
||||||
public :
|
public :
|
||||||
void set(MyClass1 cl1 = Val1);
|
void set(MyClass1 cl1 = Val1) {}
|
||||||
// This could have been written : set(MyClass1 cl1 = MyClass1(Val1))
|
// This could have been written : set(MyClass1 cl1 = MyClass1(Val1))
|
||||||
// But it works in C++ since there is a "conversion" constructor in MyClass1.
|
// But it works in C++ since there is a "conversion" constructor in MyClass1.
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue