diff --git a/druntime/test/exceptions/src/invalid_memory_operation.d b/druntime/test/exceptions/src/invalid_memory_operation.d index 1cf1a9fd4ba1..bd30eebe4257 100644 --- a/druntime/test/exceptions/src/invalid_memory_operation.d +++ b/druntime/test/exceptions/src/invalid_memory_operation.d @@ -8,5 +8,6 @@ struct S void main() { - new S; + foreach(i; 0 .. 100) + new S; }