aboutsummaryrefslogtreecommitdiff
path: root/tests/pending
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending')
-rw-r--r--tests/pending/run/t7880.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/pending/run/t7880.scala b/tests/pending/run/t7880.scala
new file mode 100644
index 000000000..7e57a3421
--- /dev/null
+++ b/tests/pending/run/t7880.scala
@@ -0,0 +1,8 @@
+// Do "git log" on this file to know why it's been moved to pending
+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 => }
+}