Sign in
gnu
/
gcc
/
4a236ed1eaa43d684d68eb2993256fff13b1d368
/
.
/
libphobos
/
testsuite
/
libphobos.allocations
/
overflow_from_existing.d
blob: c41b29fbde76b461c45c7aa7a80c20d07a383585 [
file
] [
log
] [
blame
]
// { dg-shouldfail "Memory allocation failed" }
// { dg-output "core.exception.OutOfMemoryError@.*: Memory allocation failed" }
void
main
()
{
void
[]
buffer
;
buffer
.
length
=
1
;
buffer
.
length
=
size_t
.
max
;
}