| 1 |
// https://issues.dlang.org/show_bug.cgi?id=20422 |
| 2 |
|
| 3 |
/* |
| 4 |
REQUIRED_ARGS: -m32 |
| 5 |
TEST_OUTPUT: |
| 6 |
--- |
| 7 |
fail_compilation/issue20422.d(15): Error: missing length argument for array |
| 8 |
fail_compilation/issue20422.d(16): Error: negative array dimension `-1` |
| 9 |
fail_compilation/issue20422.d(17): Error: negative array dimension `-2147483648` |
| 10 |
fail_compilation/issue20422.d(18): Error: too many arguments for array |
| 11 |
--- |
| 12 |
*/ |
| 13 |
|
| 14 |
void main() { |
| 15 |
new int[]; |
| 16 |
new int[-1]; |
| 17 |
new int[](int.min); |
| 18 |
new int[](1, 2); |
| 19 |
} |