File: invalid-array.h

package info (click to toggle)
gobject-introspection 1.86.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 72,464 kB
  • sloc: ansic: 562,805; python: 23,750; xml: 16,240; perl: 1,878; yacc: 1,720; sh: 1,139; lex: 513; cpp: 487; makefile: 197; javascript: 15; lisp: 1
file content (43 lines) | stat: -rw-r--r-- 1,171 bytes parent folder | download | duplicates (6)
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
#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:15: Warning: Test: invalid "array" annotation option "zero-terminated" value "foobar", must be 0 or 1

/**
 * 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:25: Warning: Test: "array" annotation option "fixed-size" needs a value
// EXPECT:26: 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:37: Warning: Test: "array" annotation option "length" needs a value