giscanner: add AnnotationParser tests
[platform/upstream/gobject-introspection.git] / tests / scanner / annotationparser / gi / annotation_allow_none.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <tests>
4
5 <test>
6   <commentblock>/**
7  * annotation_object_inout:
8  * @object: a #GObject
9  * @inoutarg: (inout) (allow-none): This is an argument test
10  *
11  * This is a test for out arguments
12  *
13  * Return value: an int
14  */</commentblock>
15   <docblock>
16     <identifier>
17       <name>annotation_object_inout</name>
18     </identifier>
19     <parameters>
20       <parameter>
21         <name>object</name>
22         <description>a #GObject</description>
23       </parameter>
24       <parameter>
25         <name>inoutarg</name>
26         <annotations>
27           <annotation>
28             <name>inout</name>
29           </annotation>
30           <annotation>
31             <name>allow-none</name>
32           </annotation>
33         </annotations>
34         <description>This is an argument test</description>
35       </parameter>
36     </parameters>
37     <description>This is a test for out arguments</description>
38   <tags>
39     <tag>
40       <name>returns</name>
41       <description>an int</description>
42     </tag>
43   </tags>
44   </docblock>
45 </test>
46
47 </tests>