-
-
Notifications
You must be signed in to change notification settings - Fork 606
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
// PERMUTE_ARGS: | ||
// REQUIRED_ARGS: -D -Dd${RESULTS_DIR}/compilable -w -o- | ||
|
||
/* | ||
TEST_OUTPUT: | ||
--- | ||
compilable/ddoc10236.d(33): Warning: Ddoc: parameter count mismatch | ||
compilable/ddoc10236.d(45): Warning: Ddoc: function declaration has no parameter 'y' | ||
compilable/ddoc10236.d(57): Warning: Ddoc: function declaration has no parameter 'y' | ||
compilable/ddoc10236.d(57): Warning: Ddoc: parameter count mismatch | ||
--- | ||
*/ | ||
|
||
/*********************************** | ||
* foo_good does this. | ||
* Params: | ||
* x = is for this | ||
* and not for that | ||
* y = is for that | ||
*/ | ||
|
||
void foo_good(int x, int y) | ||
{ | ||
} | ||
|
||
/*********************************** | ||
* foo_count_mismatch does this. | ||
* Params: | ||
* x = is for this | ||
* and not for that | ||
*/ | ||
|
||
void foo_count_mismatch(int x, int y) // Warning: Ddoc: parameter count mismatch | ||
{ | ||
} | ||
|
||
/*********************************** | ||
* foo_no_param_y does this. | ||
* Params: | ||
* x = is for this | ||
* and not for that | ||
* y = is for that | ||
*/ | ||
|
||
void foo_no_param_y(int x, int z) // Warning: Ddoc: function declaration has no parameter 'y' | ||
{ | ||
} | ||
|
||
/*********************************** | ||
* foo_count_mismatch_no_param_y does this. | ||
* Params: | ||
* x = is for this | ||
* and not for that | ||
* y = is for that | ||
*/ | ||
|
||
void foo_count_mismatch_no_param_y(int x) | ||
{ | ||
} |