diff options
Diffstat (limited to 'gcc/testsuite/gdc.test/fail_compilation/test21096.d')
-rw-r--r-- | gcc/testsuite/gdc.test/fail_compilation/test21096.d | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/fail_compilation/test21096.d b/gcc/testsuite/gdc.test/fail_compilation/test21096.d new file mode 100644 index 00000000000..e32ad9c9d74 --- /dev/null +++ b/gcc/testsuite/gdc.test/fail_compilation/test21096.d @@ -0,0 +1,13 @@ +// https://issues.dlang.org/show_bug.cgi?id=21096 + +/* +TEST_OUTPUT: +--- +fail_compilation/test21096.d(13): Error: identifier or new keyword expected following `(...)`. +fail_compilation/test21096.d(13): Error: found `.` when expecting `]` +fail_compilation/test21096.d(13): Error: no identifier for declarator `char` +fail_compilation/test21096.d(13): Error: declaration expected, not `]` +--- +*/ + +char[(void*).]; |