aboutsummaryrefslogtreecommitdiffstats
path: root/tests/samplebinding
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-06-02 17:31:05 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:15:25 -0300
commite3c2d6c3fae088185ab83e19a65190e28120a3ee (patch)
treedf35de4d903fc9f240a06839ac86122371b07cb3 /tests/samplebinding
parent9c172e94cb5d2fd263a653a5515f02194cf3279d (diff)
Test for bug 464 - "Can't create target lang package and namespace with the same name"
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.xml4
3 files changed, 7 insertions, 0 deletions
diff --git a/tests/samplebinding/CMakeLists.txt b/tests/samplebinding/CMakeLists.txt
index 04ee3b398..072e36c34 100644
--- a/tests/samplebinding/CMakeLists.txt
+++ b/tests/samplebinding/CMakeLists.txt
@@ -74,6 +74,8 @@ ${CMAKE_CURRENT_BINARY_DIR}/sample/rectf_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/sample/reference_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/sample/referentmodelindex_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/sample/sample_module_wrapper.cpp
+${CMAKE_CURRENT_BINARY_DIR}/sample/sample_wrapper.cpp
+${CMAKE_CURRENT_BINARY_DIR}/sample/sample_sample_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/sample/samplenamespace_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/sample/samplenamespace_someclass_someinnerclass_okthisisrecursiveenough_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/sample/samplenamespace_someclass_someinnerclass_wrapper.cpp
diff --git a/tests/samplebinding/global.h b/tests/samplebinding/global.h
index 850518494..08f45b1df 100644
--- a/tests/samplebinding/global.h
+++ b/tests/samplebinding/global.h
@@ -41,6 +41,7 @@
#include "rect.h"
#include "reference.h"
#include "removednamespaces.h"
+#include "sample.h"
#include "samplenamespace.h"
#include "simplefile.h"
#include "size.h"
diff --git a/tests/samplebinding/typesystem_sample.xml b/tests/samplebinding/typesystem_sample.xml
index 927483bf5..359da0656 100644
--- a/tests/samplebinding/typesystem_sample.xml
+++ b/tests/samplebinding/typesystem_sample.xml
@@ -52,6 +52,10 @@
</inject-code>
</add-function>
+ <namespace-type name="sample">
+ <value-type name="sample" />
+ </namespace-type>
+
<function signature="sumComplexPair(std::pair&lt;Complex, Complex>)" />
<function signature="gimmeComplexList()" />
<function signature="transmuteComplexIntoPoint(const Complex&amp;)" />