summaryrefslogtreecommitdiff
path: root/tests/scanner/annotationparser/gi/annotation_allow_none.xml
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-09-04 16:13:21 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-09-04 16:13:21 +0000
commita194122be492fbddd8748fe323a648434a866c36 (patch)
treef39293588b7922faa40f0c6b985a031f8f5cf0ae /tests/scanner/annotationparser/gi/annotation_allow_none.xml
parent8a2a9f9db169eaaf2a7eede18e0ceba0af44345f (diff)
parent85d02d59f101f9eb37829b16a81890ef9801824a (diff)
downloadgobject-introspection-a194122be492fbddd8748fe323a648434a866c36.tar.gz
merge with GOBJECT_INTROSPECTION_1_37_6baserock/jonathan/fix-giscanner
Diffstat (limited to 'tests/scanner/annotationparser/gi/annotation_allow_none.xml')
-rw-r--r--tests/scanner/annotationparser/gi/annotation_allow_none.xml47
1 files changed, 47 insertions, 0 deletions
diff --git a/tests/scanner/annotationparser/gi/annotation_allow_none.xml b/tests/scanner/annotationparser/gi/annotation_allow_none.xml
new file mode 100644
index 00000000..02db79a9
--- /dev/null
+++ b/tests/scanner/annotationparser/gi/annotation_allow_none.xml
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<tests>
+
+<test>
+ <commentblock>/**
+ * annotation_object_inout:
+ * @object: a #GObject
+ * @inoutarg: (inout) (allow-none): This is an argument test
+ *
+ * This is a test for out arguments
+ *
+ * Return value: an int
+ */</commentblock>
+ <docblock>
+ <identifier>
+ <name>annotation_object_inout</name>
+ </identifier>
+ <parameters>
+ <parameter>
+ <name>object</name>
+ <description>a #GObject</description>
+ </parameter>
+ <parameter>
+ <name>inoutarg</name>
+ <annotations>
+ <annotation>
+ <name>inout</name>
+ </annotation>
+ <annotation>
+ <name>allow-none</name>
+ </annotation>
+ </annotations>
+ <description>This is an argument test</description>
+ </parameter>
+ </parameters>
+ <description>This is a test for out arguments</description>
+ <tags>
+ <tag>
+ <name>returns</name>
+ <description>an int</description>
+ </tag>
+ </tags>
+ </docblock>
+</test>
+
+</tests>