aboutsummaryrefslogtreecommitdiffstats
path: root/tests/samplebinding/typesystem_sample.xml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/samplebinding/typesystem_sample.xml')
-rw-r--r--tests/samplebinding/typesystem_sample.xml8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/samplebinding/typesystem_sample.xml b/tests/samplebinding/typesystem_sample.xml
index 576c54656..5a518c34a 100644
--- a/tests/samplebinding/typesystem_sample.xml
+++ b/tests/samplebinding/typesystem_sample.xml
@@ -1274,7 +1274,13 @@
<object-type name="HandleHolder" />
- <object-type name="ObjectTypeOperators" />
+ <object-type name="ObjectTypeOperators">
+ <add-function signature="operator!=(std::string)" return-type="bool">
+ <inject-code class="target">
+ %PYARG_0 = %CONVERTTOPYTHON[bool](%CPPSELF.key() != %1);
+ </inject-code>
+ </add-function>
+ </object-type>
<!-- type used in abstract method -->
<object-type name="HideType" generate="no" />