mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
16 lines
254 B
D
16 lines
254 B
D
/* REQUIRED_ARGS: -m32
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail4611.d(15): Error: `Vec[cast(size_t)2147483647]` size 4 * 2147483647 exceeds 0x7fffffff size limit for static array
|
|
---
|
|
*/
|
|
|
|
struct Vec
|
|
{
|
|
int x;
|
|
}
|
|
|
|
void main()
|
|
{
|
|
Vec[ptrdiff_t.max] a;
|
|
}
|