summaryrefslogtreecommitdiffstats
path: root/tests/samplebinding
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-03-02 17:22:47 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-03-02 17:22:47 -0300
commitdbeca960863dadbe8d496195bc60202619314214 (patch)
tree0dada49b6b93f7af530d5b580af7b9d850f1b270 /tests/samplebinding
parentcff48628063b8cf145c01a0f84c19fabd75682db (diff)
downloadshiboken-dbeca960863dadbe8d496195bc60202619314214.tar.gz
shiboken-dbeca960863dadbe8d496195bc60202619314214.tar.xz
shiboken-dbeca960863dadbe8d496195bc60202619314214.zip
Adds tests for a class without implicit conversions being extended in another module.
One value type class, called NoImplicitConversion, without implicit conversions of any kind is declared in the first library, libsample. In the other library, libother, ExtendsNoImplicitConversion defines a conversion operator to turn itself into a NoImplicitConversion class. The unit tests tries to pass an ExtendsNoImplicitConversion object where a NoImplicitConversion is expected.
Diffstat (limited to 'tests/samplebinding')
-rw-r--r--tests/samplebinding/CMakeLists.txt1
-rw-r--r--tests/samplebinding/global.h1
-rw-r--r--tests/samplebinding/typesystem_sample.xml1
3 files changed, 3 insertions, 0 deletions
diff --git a/tests/samplebinding/CMakeLists.txt b/tests/samplebinding/CMakeLists.txt
index 9fa1ddc0..7510b5b3 100644
--- a/tests/samplebinding/CMakeLists.txt
+++ b/tests/samplebinding/CMakeLists.txt
@@ -34,6 +34,7 @@ ${CMAKE_CURRENT_BINARY_DIR}/sample/mderived3_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/sample/mderived4_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/sample/mderived5_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/sample/modifications_wrapper.cpp
+${CMAKE_CURRENT_BINARY_DIR}/sample/noimplicitconversion_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/sample/nondefaultctor_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/sample/objecttype_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/sample/objecttypelayout_wrapper.cpp
diff --git a/tests/samplebinding/global.h b/tests/samplebinding/global.h
index b442623e..f54fb516 100644
--- a/tests/samplebinding/global.h
+++ b/tests/samplebinding/global.h
@@ -13,6 +13,7 @@
#include "mapuser.h"
#include "modifications.h"
#include "multiple_derived.h"
+#include "noimplicitconversion.h"
#include "nondefaultctor.h"
#include "objecttype.h"
#include "objecttypelayout.h"
diff --git a/tests/samplebinding/typesystem_sample.xml b/tests/samplebinding/typesystem_sample.xml
index 597bed61..c3522b84 100644
--- a/tests/samplebinding/typesystem_sample.xml
+++ b/tests/samplebinding/typesystem_sample.xml
@@ -826,6 +826,7 @@
<value-type name="MapUser"/>
<value-type name="PairUser"/>
<value-type name="ListUser"/>
+ <value-type name="NoImplicitConversion" />
<value-type name="NonDefaultCtor" />
<value-type name="OddBoolUser" />
<value-type name="Overload">