d: Merge upstream dmd 568496d5b, druntime 178c44ff, phobos 574bf883b.
[official-gcc.git] / gcc / testsuite / gdc.test / compilable / ddoc10236b.d
blob85783e8d147296982ed73072db978c46a885a321
1 // PERMUTE_ARGS:
2 // REQUIRED_ARGS: -D -Dd${RESULTS_DIR}/compilable -wi -o-
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 ---
15 /***********************************
16 * foo_good does this.
17 * Params:
18 * x = is for this
19 * and not for that
20 * y = is for that
23 void foo_good(int x)(int y)
27 /***********************************
28 * foo_good2 does this.
29 * Params:
30 * y = is for that
33 void foo_good2(int x)(int y)
37 /***********************************
38 * foo_count_mismatch does this.
39 * Params:
40 * x = is for this
41 * and not for that
44 void foo_count_mismatch(int x)(int y) // Warning: Ddoc: parameter count mismatch
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
56 void foo_no_param_y(int x)(int z) // Warning: Ddoc: function declaration has no parameter 'y'
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
68 void foo_count_mismatch_no_param_y(int x)()