summaryrefslogtreecommitdiffstats
path: root/tests/samplebinding/typesystem_sample.xml
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-10-18 10:26:53 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2010-10-18 10:53:55 -0200
commit6b57558fefd3a1e3913e8fe386a07da0d8aeedc3 (patch)
tree64ef1426a88b914f762be74e1e16ab4978ffeafb /tests/samplebinding/typesystem_sample.xml
parent9078b47fcc5fec2d80a242e8a8f494b5b4c4efd1 (diff)
downloadshiboken-6b57558fefd3a1e3913e8fe386a07da0d8aeedc3.tar.gz
shiboken-6b57558fefd3a1e3913e8fe386a07da0d8aeedc3.tar.xz
shiboken-6b57558fefd3a1e3913e8fe386a07da0d8aeedc3.zip
Fix bug#411 - "Incorrect return statement generated in a function that returns a reference"
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'tests/samplebinding/typesystem_sample.xml')
-rw-r--r--tests/samplebinding/typesystem_sample.xml30
1 files changed, 29 insertions, 1 deletions
diff --git a/tests/samplebinding/typesystem_sample.xml b/tests/samplebinding/typesystem_sample.xml
index 9d14681a..2960ec73 100644
--- a/tests/samplebinding/typesystem_sample.xml
+++ b/tests/samplebinding/typesystem_sample.xml
@@ -623,7 +623,35 @@
-->
</object-type>
- <value-type name="Reference"/>
+ <value-type name="Reference">
+ <modify-function signature="returnMyFirstArg(Reference&amp;)">
+ <modify-argument index="return">
+ <replace-default-expression with="%1"/>
+ </modify-argument>
+ </modify-function>
+ <modify-function signature="returnMySecondArg(int, Reference&amp;)">
+ <modify-argument index="return">
+ <replace-default-expression with="%2"/>
+ </modify-argument>
+ </modify-function>
+ </value-type>
+ <object-type name="ObjTypeReference">
+ <modify-function signature="returnMyFirstArg(ObjTypeReference&amp;)">
+ <modify-argument index="return">
+ <replace-default-expression with="%1"/>
+ </modify-argument>
+ </modify-function>
+ <modify-function signature="returnMySecondArg(int, ObjTypeReference&amp;)">
+ <modify-argument index="return">
+ <replace-default-expression with="%2"/>
+ </modify-argument>
+ </modify-function>
+ <modify-function signature="justAPureVirtualFunc(ObjTypeReference&amp;)">
+ <modify-argument index="return">
+ <replace-default-expression with="%1"/>
+ </modify-argument>
+ </modify-function>
+ </object-type>
<value-type name="ImplicitConv">
<enum-type name="CtorEnum"/>
<enum-type name="ICOverloadedFuncEnum"/>