diff options
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/arybufgrow.check | 1 | ||||
-rw-r--r-- | test/files/run/arybufgrow.scala | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/arybufgrow.check b/test/files/run/arybufgrow.check new file mode 100644 index 0000000000..ce71841c77 --- /dev/null +++ b/test/files/run/arybufgrow.check @@ -0,0 +1 @@ +1000 = 1000 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); +} |