Imported Upstream version 1.43.92
[platform/upstream/gobject-introspection.git] / tests / warn / invalid-array.h
1 #include "common.h"
2
3 /**
4  * test_invalid_array:
5  * @out1: (array foobar):
6  **/
7 void
8 test_invalid_array (char ***out1);
9
10 // EXPECT:5: Warning: Test: invalid "array" annotation option: "foobar"
11
12 /**
13  * test_invalid_array_zero_terminated:
14  * @out1: (array zero-terminated):
15  * @out2: (array zero-terminated=foobar):
16  **/
17 void
18 test_invalid_array_zero_terminated (char ***out1,
19                                     char ***out2);
20
21 // EXPECT:15: Warning: Test: invalid "array" annotation option "zero-terminated" value "foobar", must be 0 or 1
22
23 /**
24  * test_invalid_array_fixed_size:
25  * @out1: (array fixed-size):
26  * @out2: (array fixed-size=foobar):
27  **/
28 void
29 test_invalid_array_fixed_size (char ***out1,
30                                char ***out2);
31
32 // EXPECT:25: Warning: Test: "array" annotation option "fixed-size" needs a value
33 // EXPECT:26: Warning: Test: invalid "array" annotation option "fixed-size" value "foobar", must be an integer
34
35 /**
36  * test_invalid_array_length:
37  * @out1: (array length):
38  **/
39 void
40 test_invalid_array_length (char ***out1,
41                            char ***out2);
42
43 // EXPECT:37: Warning: Test: "array" annotation option "length" needs a value