summaryrefslogtreecommitdiffstats
path: root/tests/samplebinding/typesystem_sample.xml
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-09-24 11:25:41 -0300
committerrenatofilho <renato.filho@openbossa.org>2010-09-24 16:39:51 -0300
commit2e715ed74316704cba426e99ba7fe06ace038ed4 (patch)
treee48186f8d9e84c8360495140e56a435abea53b4d /tests/samplebinding/typesystem_sample.xml
parenta94524af29c3d74960935de44a4b20fd4d5eddad (diff)
downloadshiboken-2e715ed74316704cba426e99ba7fe06ace038ed4.tar.gz
shiboken-2e715ed74316704cba426e99ba7fe06ace038ed4.tar.xz
shiboken-2e715ed74316704cba426e99ba7fe06ace038ed4.zip
Created unit test to unsafe parent (parent created from c++)
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/samplebinding/typesystem_sample.xml')
-rw-r--r--tests/samplebinding/typesystem_sample.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/samplebinding/typesystem_sample.xml b/tests/samplebinding/typesystem_sample.xml
index 0706355a..ccf9c512 100644
--- a/tests/samplebinding/typesystem_sample.xml
+++ b/tests/samplebinding/typesystem_sample.xml
@@ -208,6 +208,11 @@
<parent index="this" action="add"/>
</modify-argument>
</modify-function>
+ <modify-function signature="createChild(ObjectType*)">
+ <modify-argument index="return">
+ <define-ownership owner="c++" />
+ </modify-argument>
+ </modify-function>
</object-type>
<object-type name="ObjectTypeLayout">
<modify-function signature="create()">