giscanner: add AnnotationParser tests
[platform/upstream/gobject-introspection.git] / tests / scanner / annotationparser / gi / annotation_destroy.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <tests>
4
5 <test>
6   <commentblock>/**
7  * annotation_custom_destroy:
8  * @callback: (destroy destroy) (closure data): Destroy notification
9  *
10  * Test messing up the heuristic of closure/destroy-notification
11  * detection, and fixing it via annotations.
12  */</commentblock>
13   <docblock>
14     <identifier>
15       <name>annotation_custom_destroy</name>
16     </identifier>
17     <parameters>
18       <parameter>
19         <name>callback</name>
20         <annotations>
21           <annotation>
22             <name>destroy</name>
23             <options>
24               <option>
25                 <name>destroy</name>
26               </option>
27             </options>
28           </annotation>
29           <annotation>
30             <name>closure</name>
31             <options>
32               <option>
33                 <name>data</name>
34               </option>
35             </options>
36           </annotation>
37         </annotations>
38         <description>Destroy notification</description>
39       </parameter>
40     </parameters>
41     <description>Test messing up the heuristic of closure/destroy-notification
42 detection, and fixing it via annotations.</description>
43   </docblock>
44 </test>
45
46 </tests>