diff options
author | Paul Phillips <paulp@improving.org> | 2010-07-02 03:14:22 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-07-02 03:14:22 +0000 |
commit | 63dff5e57ab06539b213cb5c51e7e1c3deb93ef4 (patch) | |
tree | 0ca261d54016768bda11a5f9094574d1b9428a83 /test/files/run | |
parent | f911b5da551b766a59b9ede643a5a7d2bc7e3c78 (diff) | |
download | scala-63dff5e57ab06539b213cb5c51e7e1c3deb93ef4.tar.gz scala-63dff5e57ab06539b213cb5c51e7e1c3deb93ef4.tar.bz2 scala-63dff5e57ab06539b213cb5c51e7e1c3deb93ef4.zip |
Test case for (long ago closed) #2106, no review.
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/bug2106.flags | 1 | ||||
-rw-r--r-- | test/files/run/bug2106.scala | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/bug2106.flags b/test/files/run/bug2106.flags new file mode 100644 index 0000000000..eb4d19bcb9 --- /dev/null +++ b/test/files/run/bug2106.flags @@ -0,0 +1 @@ +-optimise
\ No newline at end of file diff --git a/test/files/run/bug2106.scala b/test/files/run/bug2106.scala new file mode 100644 index 0000000000..e8124dabab --- /dev/null +++ b/test/files/run/bug2106.scala @@ -0,0 +1,8 @@ +class A extends Cloneable { + @inline final def foo = clone() +} + +object Test { + val x = new A + def main(args: Array[String]) = x.foo +} |