blob: 106047bc8fff8d860ce576a3aa08b5e616cbd36d (
plain) (
blame)
1
2
3
4
5
6
7
|
object Test extends dotty.runtime.LegacyApp {
// This should terminate in one way or another, but it shouldn't loop forever.
try {
val buffer = collection.mutable.ArrayBuffer.fill(Int.MaxValue / 2 + 1)(0)
buffer append 1
} catch { case _: OutOfMemoryError => }
}
|