giscanner: add AnnotationParser tests
[platform/upstream/gobject-introspection.git] / tests / scanner / annotationparser / gi / annotation_out.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <tests>
4
5 <test>
6   <commentblock>/**
7  * annotation_object_out:
8  * @object: a #GObject
9  * @outarg: (out): 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_out</name>
18     </identifier>
19     <parameters>
20       <parameter>
21         <name>object</name>
22         <description>a #GObject</description>
23       </parameter>
24       <parameter>
25         <name>outarg</name>
26         <annotations>
27           <annotation>
28             <name>out</name>
29           </annotation>
30         </annotations>
31         <description>This is an argument test</description>
32       </parameter>
33     </parameters>
34     <description>This is a test for out arguments</description>
35     <tags>
36       <tag>
37         <name>returns</name>
38         <description>an int</description>
39       </tag>
40     </tags>
41   </docblock>
42 </test>
43
44 <test>
45   <commentblock>/**
46  * regress_test_struct_a_clone:
47  * @a: the structure
48  * @a_out: (out caller-allocates): the cloned structure
49  */</commentblock>
50   <docblock>
51     <identifier>
52       <name>regress_test_struct_a_clone</name>
53     </identifier>
54     <parameters>
55       <parameter>
56         <name>a</name>
57         <description>the structure</description>
58       </parameter>
59       <parameter>
60         <name>a_out</name>
61         <annotations>
62           <annotation>
63             <name>out</name>
64             <options>
65               <option>
66                 <name>caller-allocates</name>
67               </option>
68             </options>
69           </annotation>
70         </annotations>
71         <description>the cloned structure</description>
72       </parameter>
73     </parameters>
74   </docblock>
75 </test>
76
77 <test>
78   <commentblock>/**
79  * regress_test_struct_a_clone:
80  * @a: the structure
81  * @a_out: (out callee-allocates): the cloned structure
82  */</commentblock>
83   <docblock>
84     <identifier>
85       <name>regress_test_struct_a_clone</name>
86     </identifier>
87     <parameters>
88       <parameter>
89         <name>a</name>
90         <description>the structure</description>
91       </parameter>
92       <parameter>
93         <name>a_out</name>
94         <annotations>
95           <annotation>
96             <name>out</name>
97             <options>
98               <option>
99                 <name>callee-allocates</name>
100               </option>
101             </options>
102           </annotation>
103         </annotations>
104         <description>the cloned structure</description>
105       </parameter>
106     </parameters>
107   </docblock>
108 </test>
109
110 </tests>