aboutsummaryrefslogtreecommitdiffstats
path: root/tests/samplebinding
diff options
context:
space:
mode:
authorMatthew Woehlke <matthew.woehlke@kitware.com>2013-12-31 14:30:53 -0500
committerJohn Cummings <jcummings2@users.sf.net>2014-01-07 21:48:39 +0100
commita527dd51e69b80c2d5be3a1d8cd60ab2b2616fa5 (patch)
treef0cfee0759f3e6b0547655b887646db1b9869a04 /tests/samplebinding
parentfaa44f349170667fb918fc25e51cc5f392bfc6ad (diff)
Fix for containers with 'const' values
Fix omission of 'const' specifier when generating binding code for containers whose value type is 'const', which would lead to binding code that does not compile due to 'const' mismatch. Includes test case. Change-Id: Iff99a16ee071bb255f78e86e2456e5206cc00cfb Reviewed-by: John Cummings <jcummings2@users.sf.net>
Diffstat (limited to 'tests/samplebinding')
-rw-r--r--tests/samplebinding/CMakeLists.txt2
-rw-r--r--tests/samplebinding/global.h1
-rw-r--r--tests/samplebinding/typesystem_sample.xml3
3 files changed, 6 insertions, 0 deletions
diff --git a/tests/samplebinding/CMakeLists.txt b/tests/samplebinding/CMakeLists.txt
index 23ff63c3d..ce13b9156 100644
--- a/tests/samplebinding/CMakeLists.txt
+++ b/tests/samplebinding/CMakeLists.txt
@@ -19,6 +19,8 @@ ${CMAKE_CURRENT_BINARY_DIR}/sample/bucket_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/sample/collector_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/sample/color_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/sample/ctorconvrule_wrapper.cpp
+${CMAKE_CURRENT_BINARY_DIR}/sample/cvlistuser_wrapper.cpp
+${CMAKE_CURRENT_BINARY_DIR}/sample/cvvaluetype_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/sample/sbkdate_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/sample/derived_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/sample/derived_someinnerclass_wrapper.cpp
diff --git a/tests/samplebinding/global.h b/tests/samplebinding/global.h
index 28bac0a4e..007a5e33d 100644
--- a/tests/samplebinding/global.h
+++ b/tests/samplebinding/global.h
@@ -5,6 +5,7 @@
#include "collector.h"
#include "complex.h"
#include "ctorconvrule.h"
+#include "cvlist.h"
#include "sbkdate.h"
#include "derived.h"
#include "echo.h"
diff --git a/tests/samplebinding/typesystem_sample.xml b/tests/samplebinding/typesystem_sample.xml
index 233a756ce..dee028596 100644
--- a/tests/samplebinding/typesystem_sample.xml
+++ b/tests/samplebinding/typesystem_sample.xml
@@ -601,6 +601,9 @@
<value-type name="ValueDuplicator"/>
</namespace-type>
+ <value-type name="CVValueType"/>
+ <value-type name="CVListUser"/>
+
<value-type name="IntList">
<enum-type name="CtorEnum"/>
</value-type>