diff options
author | Miguel Garcia <miguelalfredo.garcia@epfl.ch> | 2012-06-26 11:06:50 +0200 |
---|---|---|
committer | Miguel Garcia <miguelalfredo.garcia@epfl.ch> | 2012-06-26 11:06:50 +0200 |
commit | dbd31fb845e4731dbe580911b6f44d2d9b1973a9 (patch) | |
tree | c659e9ed7c344d506deae387ac1b7208f716b1d8 /test/files/run | |
parent | 5a7bbfe035ecb64acd57fc66ea0d874ad02c31ff (diff) | |
download | scala-dbd31fb845e4731dbe580911b6f44d2d9b1973a9.tar.gz scala-dbd31fb845e4731dbe580911b6f44d2d9b1973a9.tar.bz2 scala-dbd31fb845e4731dbe580911b6f44d2d9b1973a9.zip |
fix for SI-4935
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/t4935.check | 1 | ||||
-rw-r--r-- | test/files/run/t4935.flags | 1 | ||||
-rw-r--r-- | test/files/run/t4935.scala | 9 |
3 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/t4935.check b/test/files/run/t4935.check new file mode 100644 index 0000000000..ef0493b275 --- /dev/null +++ b/test/files/run/t4935.check @@ -0,0 +1 @@ +hello
diff --git a/test/files/run/t4935.flags b/test/files/run/t4935.flags new file mode 100644 index 0000000000..ac14fe5dbd --- /dev/null +++ b/test/files/run/t4935.flags @@ -0,0 +1 @@ +-optimize
diff --git a/test/files/run/t4935.scala b/test/files/run/t4935.scala new file mode 100644 index 0000000000..18631e2041 --- /dev/null +++ b/test/files/run/t4935.scala @@ -0,0 +1,9 @@ +object Test extends App {
+ for (i <- 0 to 1) {
+ val a = Foo
+ }
+}
+
+object Foo {
+ println("hello")
+}
|