diff options
Diffstat (limited to 'gcc/testsuite/gdc.test/fail_compilation/issue20422.d')
-rw-r--r-- | gcc/testsuite/gdc.test/fail_compilation/issue20422.d | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/fail_compilation/issue20422.d b/gcc/testsuite/gdc.test/fail_compilation/issue20422.d new file mode 100644 index 00000000000..1964f8ac888 --- /dev/null +++ b/gcc/testsuite/gdc.test/fail_compilation/issue20422.d @@ -0,0 +1,12 @@ +// https://issues.dlang.org/show_bug.cgi?id=20422 + +/* +TEST_OUTPUT: +--- +fail_compilation/issue20422.d(11): Error: missing length argument for array +--- +*/ + +void main() { + new int[]; +} |