blob: 1c547613c44500ca565cc40bc93aeb3dd3d55e74 [file] [log] [blame]
// PERMUTE_ARGS:
// REQUIRED_ARGS: -D -Dd${RESULTS_DIR}/compilable -wi -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)
{
}