Skip to content

Commit

Permalink
Fix issue 10236 test case
Browse files Browse the repository at this point in the history
  • Loading branch information
lionello committed Aug 24, 2013
1 parent 343176b commit 51afa9a
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions test/compilable/ddoc10236.d
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)
{
}

0 comments on commit 51afa9a

Please sign in to comment.