forked from dlang/dmd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfail21347.d
More file actions
20 lines (18 loc) · 817 Bytes
/
Copy pathfail21347.d
File metadata and controls
20 lines (18 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* TEST_OUTPUT:
---
fail_compilation/fail21347.d(19): Error: expression expected, not `;`
fail_compilation/fail21347.d(20): Error: found `}` when expecting `,`
fail_compilation/fail21347.d(19): Error: found `End of File` when expecting `]`
fail_compilation/fail21347.d(19): Error: found `End of File` when expecting `)`
fail_compilation/fail21347.d(21): Error: found `End of File` when expecting `;` following expression
fail_compilation/fail21347.d(19): expression: `[(__error)]`
fail_compilation/fail21347.d(21): Error: matching `}` expected following compound statement, not `End of File`
fail_compilation/fail21347.d(18): unmatched `{`
---
*/
// https://github.com/dlang/dmd/issues/21347
// diagnostic: Parser never stops looking for ',' on array literal syntax error
void test21347()
{
([;
}