From 63dff5e57ab06539b213cb5c51e7e1c3deb93ef4 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 2 Jul 2010 03:14:22 +0000 Subject: Test case for (long ago closed) #2106, no review. --- test/files/run/bug2106.flags | 1 + test/files/run/bug2106.scala | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 test/files/run/bug2106.flags create mode 100644 test/files/run/bug2106.scala 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 +} -- cgit v1.2.3