Retro68/gcc/libphobos/testsuite/libphobos.allocations/overflow_from_zero.d
Wolfgang Thaller 6fbf4226da gcc-9.1
2019-06-20 20:10:10 +02:00

9 lines
218 B
D

// { dg-shouldfail "Memory allocation failed" }
// { dg-output "core.exception.OutOfMemoryError@.*: Memory allocation failed" }
void main()
{
void[] buffer;
buffer.length = 0;
buffer.length = size_t.max;
}