Initial packaging for Tizen
[profile/ivi/gobject-introspection.git] / tests / warn / unknown-parameter.h
1 /* See https://bugzilla.gnome.org/show_bug.cgi?id=629708 */
2
3 /**
4  * test_param_mismatch:
5  * @wrong_name: (out):
6  *
7  */
8 void test_param_mismatch(int *out);
9
10 // EXPECT:5: Warning: Test: test_param_mismatch: unknown parameter 'wrong_name' in documentation comment, should be 'out'
11
12 /**
13  * test_param_mismatch2:
14  * @wrong_name2: (out):
15  *
16  */
17 void test_param_mismatch2(int a, int *out2);
18
19 // EXPECT:14: Warning: Test: test_param_mismatch2: unknown parameter 'wrong_name2' in documentation comment, should be one of 'a', 'out2'
20
21 /**
22  * test_param_mismatch3:
23  * @a: an integer
24  * @wrong_name3: (out):
25  *
26  */
27 void test_param_mismatch3(int a, int *out3);
28
29 // EXPECT:24: Warning: Test: test_param_mismatch3: unknown parameter 'wrong_name3' in documentation comment, should be 'out3'
30
31 /**
32  * test_param_missing:
33  * @missing: (out):
34  *
35  */
36 void test_param_missing(void);
37
38 // EXPECT:33: Warning: Test: test_param_missing: unknown parameter 'missing' in documentation comment
39
40
41 /**
42  * test_param_vargs:
43  * @...: The varargs
44  *
45  */
46 void test_param_varargs(int i, ...);
47
48 // Should not warn