summaryrefslogtreecommitdiff
path: root/test/files/run/arybufgrow.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/arybufgrow.scala')
-rw-r--r--test/files/run/arybufgrow.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/arybufgrow.scala b/test/files/run/arybufgrow.scala
new file mode 100644
index 0000000000..4dccd962f2
--- /dev/null
+++ b/test/files/run/arybufgrow.scala
@@ -0,0 +1,10 @@
+import scala.collection.mutable._;
+
+object Test extends Application {
+ val buf = new ArrayBuffer[String];
+ for(val i <- List.range(0,1000)) {
+ buf + "hello";
+ }
+
+ Console.println("1000 = " + buf.length);
+}