Limit dg-xfail-run-if for *-*-hpux11.[012]* to -O0
[official-gcc.git] / libphobos / testsuite / libphobos.allocations / overflow_from_existing.d
blobc41b29fbde76b461c45c7aa7a80c20d07a383585
1 // { dg-shouldfail "Memory allocation failed" }
2 // { dg-output "core.exception.OutOfMemoryError@.*: Memory allocation failed" }
3 void main()
5 void[] buffer;
6 buffer.length = 1;
7 buffer.length = size_t.max;