| 1 |
/* |
| 2 |
REQUIRED_ARGS: -verrors=0 |
| 3 |
TEST_OUTPUT: |
| 4 |
--- |
| 5 |
fail_compilation/misc_parser_err_cov1.d(29): Error: basic type expected, not `)` |
| 6 |
fail_compilation/misc_parser_err_cov1.d(30): Error: basic type expected, not `)` |
| 7 |
fail_compilation/misc_parser_err_cov1.d(31): Error: `__traits(identifier, args...)` expected |
| 8 |
fail_compilation/misc_parser_err_cov1.d(31): Error: semicolon expected following auto declaration, not `o` |
| 9 |
fail_compilation/misc_parser_err_cov1.d(31): Error: expression expected, not `)` |
| 10 |
fail_compilation/misc_parser_err_cov1.d(32): Error: expected `(` following `is`, not `;` |
| 11 |
fail_compilation/misc_parser_err_cov1.d(33): Error: semicolon expected following auto declaration, not `auto` |
| 12 |
fail_compilation/misc_parser_err_cov1.d(33): Error: found `+` when expecting `(` following `mixin` |
| 13 |
fail_compilation/misc_parser_err_cov1.d(35): Error: `key:value` expected for associative array literal |
| 14 |
fail_compilation/misc_parser_err_cov1.d(36): Error: basic type expected, not `;` |
| 15 |
fail_compilation/misc_parser_err_cov1.d(36): Error: `{ members }` expected for anonymous class |
| 16 |
fail_compilation/misc_parser_err_cov1.d(38): Error: template argument expected following `!` |
| 17 |
fail_compilation/misc_parser_err_cov1.d(38): Error: missing closing `)` after `if (parseShift!()` |
| 18 |
fail_compilation/misc_parser_err_cov1.d(38): Error: found `)` when expecting `(` |
| 19 |
fail_compilation/misc_parser_err_cov1.d(39): Error: missing closing `)` after `if (` |
| 20 |
fail_compilation/misc_parser_err_cov1.d(39): Error: identifier expected following `immutable(int).`, not `+` |
| 21 |
fail_compilation/misc_parser_err_cov1.d(39): Error: expression expected, not `;` |
| 22 |
fail_compilation/misc_parser_err_cov1.d(40): Error: semicolon expected following auto declaration, not `auto` |
| 23 |
fail_compilation/misc_parser_err_cov1.d(40): Error: identifier or `new` expected following `.`, not `+` |
| 24 |
fail_compilation/misc_parser_err_cov1.d(41): Error: identifier or new keyword expected following `(...)`. |
| 25 |
fail_compilation/misc_parser_err_cov1.d(41): Error: expression expected, not `;` |
| 26 |
fail_compilation/misc_parser_err_cov1.d(42): Error: found `}` when expecting `;` following expression |
| 27 |
fail_compilation/misc_parser_err_cov1.d(41): expression: `(__error) + (__error)` |
| 28 |
fail_compilation/misc_parser_err_cov1.d(43): Error: matching `}` expected following compound statement, not `End of File` |
| 29 |
fail_compilation/misc_parser_err_cov1.d(33): unmatched `{` |
| 30 |
--- |
| 31 |
*/ |
| 32 |
module misc_parser_err_cov1; |
| 33 |
|
| 34 |
|
| 35 |
//https://issues.dlang.org/show_bug.cgi?id=19995 |
| 36 |
#line 29 |
| 37 |
void foo(in); |
| 38 |
void bar(int, const @tation); |
| 39 |
|
| 40 |
void main() |
| 41 |
{ |
| 42 |
// cover errors from line 7930 to EOF |
| 43 |
#line 31 |
| 44 |
auto tt = __traits(<o<); |
| 45 |
auto b = is ; |
| 46 |
auto mx1 = mixin +); |
| 47 |
|
| 48 |
aa += [key:value, key]; |
| 49 |
auto anon1 = new class; |
| 50 |
auto anon2 = new class {}; |
| 51 |
if (parseShift !if){} |
| 52 |
auto unaryExParseError = immutable(int).+; |
| 53 |
auto postFixParseError = int.max.+; |
| 54 |
(int).+; |
| 55 |
} |