Sign in
◑
Theme
gnu
/
gcc.git
/
8b06c58c4ae83d4007510f2d2c74ee979bc2b86a
/
.
/
libphobos
/
testsuite
/
libphobos.exceptions
/
invalid_memory_operation.d
blob: 7763f0a52d80a86a9236506a8d441f14f0ce7081 [
file
]
// { dg-shouldfail "Invalid memory operation" }
// { dg-output "core.exception.InvalidMemoryOperationError@.*: Invalid memory operation" }
struct
S
{
~
this
()
{
new
int
;
}
}
void
main
()
{
foreach
(
i
;
0
..
100
)
new
S
;
}