summaryrefslogblamecommitdiff
path: root/test/files/run/t7880.scala
blob: 9fbc337f876a5d5bca7aa37ed75ec0288a37cb48 (plain) (tree)
1
2
3
4
5
6
7






                                                                                
object Test extends App {
  // 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 => }
}