Sign in
gnu
/
gcc
/
4a236ed1eaa43d684d68eb2993256fff13b1d368
/
.
/
libphobos
/
testsuite
/
libphobos.allocations
/
overflow_from_zero.d
blob: de48773272b9dc011e003d52bd4e8a3150b13823 [
file
] [
log
] [
blame
]
// { 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
;
}