Debian Codegraph @

gcc/testsuite/gdc.test/compilable/ddoc10236b.d

raw
1 // PERMUTE_ARGS:
2 // REQUIRED_ARGS: -verrors=simple -D -Dd${RESULTS_DIR}/compilable -wi -o-
3
4 /*
5 TEST_OUTPUT:
6 ---
7 compilable/ddoc10236b.d(44): Warning: Ddoc: parameter count mismatch, expected 1, got 0
8 compilable/ddoc10236b.d(44): Note that the format is `param = description`
9 compilable/ddoc10236b.d(56): Warning: Ddoc: function declaration has no parameter 'y'
10 compilable/ddoc10236b.d(68): Warning: Ddoc: function declaration has no parameter 'y'
11 compilable/ddoc10236b.d(68): Warning: Ddoc: parameter count mismatch, expected 0, got 1
12 ---
13 */
14
15 /***********************************
16 * foo_good does this.
17 * Params:
18 * x = is for this
19 * and not for that
20 * y = is for that
21 */
22
23 void foo_good(int x)(int y)
24 {
25 }
26
27 /***********************************
28 * foo_good2 does this.
29 * Params:
30 * y = is for that
31 */
32
33 void foo_good2(int x)(int y)
34 {
35 }
36
37 /***********************************
38 * foo_count_mismatch does this.
39 * Params:
40 * x = is for this
41 * and not for that
42 */
43
44 void foo_count_mismatch(int x)(int y) // Warning: Ddoc: parameter count mismatch
45 {
46 }
47
48 /***********************************
49 * foo_no_param_y does this.
50 * Params:
51 * x = is for this
52 * and not for that
53 * y = is for that
54 */
55
56 void foo_no_param_y(int x)(int z) // Warning: Ddoc: function declaration has no parameter 'y'
57 {
58 }
59
60 /***********************************
61 * foo_count_mismatch_no_param_y does this.
62 * Params:
63 * x = is for this
64 * and not for that
65 * y = is for that
66 */
67
68 void foo_count_mismatch_no_param_y(int x)()
69 {
70 }