File: invalid-array.h

package info (click to toggle)
gobject-introspection 1.32.1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 8,880 kB
  • sloc: ansic: 33,799; sh: 11,293; python: 7,284; yacc: 1,410; makefile: 400; lex: 329; perl: 254; xml: 178
file content (44 lines) | stat: -rw-r--r-- 1,184 bytes parent folder | download
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 value: '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 option zero-terminated needs a value
// EXPECT:15: Warning: Test: invalid array zero-terminated option 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 option fixed-size needs a value
// EXPECT:27: Warning: Test: invalid array fixed-size option 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 option length needs a value