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