☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
libphobos
/
testsuite
/
libphobos.allocations
/
overflow_from_existing.d
☽
☼
libphobos/testsuite/libphobos.allocations/overflow_from_existing.d
code
plain
raw
1
// { dg-shouldfail "Memory allocation failed" }
2
// { dg-output "core.exception.OutOfMemoryError@.*: Memory allocation failed" }
3
void main()
4
{
5
void[] buffer;
6
buffer.length = 1;
7
buffer.length = size_t.max;
8
}