gcc/testsuite/gdc.test/fail_compilation/ddoc_18083.d
raw| 1 | // REQUIRED_ARGS: -D -Dd${RESULTS_DIR}/fail_compilation -o- -w -c |
| 2 | /* TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/ddoc_18083.d(14): Warning: Ddoc: function declaration has no parameter 'this' |
| 5 | fail_compilation/ddoc_18083.d(14): Warning: Ddoc: parameter count mismatch, expected 0, got 1 |
| 6 | Error: warnings are treated as errors |
| 7 | Use -wi if you wish to treat warnings only as informational. |
| 8 | --- |
| 9 | */ |
| 10 | /** |
| 11 | Params: |
| 12 | this = non-existent parameter |
| 13 | */ |
| 14 | int foo() |
| 15 | { |
| 16 | return 1; |
| 17 | } |