summaryrefslogtreecommitdiff
path: root/test/files/neg/inlineMaxSize.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/inlineMaxSize.scala')
-rw-r--r--test/files/neg/inlineMaxSize.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/neg/inlineMaxSize.scala b/test/files/neg/inlineMaxSize.scala
new file mode 100644
index 0000000000..16dc0d9538
--- /dev/null
+++ b/test/files/neg/inlineMaxSize.scala
@@ -0,0 +1,8 @@
+// not a JUnit test because of https://github.com/scala-opt/scala/issues/23
+class C {
+ @inline final def f = 0
+ @inline final def g = f + f + f + f + f + f + f + f + f + f
+ @inline final def h = g + g + g + g + g + g + g + g + g + g
+ @inline final def i = h + h + h + h + h + h + h + h + h + h
+ @inline final def j = i + i
+}