summaryrefslogtreecommitdiff
path: root/test/files/neg/inlineMaxSize.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/inlineMaxSize.check')
-rw-r--r--test/files/neg/inlineMaxSize.check9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/neg/inlineMaxSize.check b/test/files/neg/inlineMaxSize.check
new file mode 100644
index 0000000000..d218a8b6e2
--- /dev/null
+++ b/test/files/neg/inlineMaxSize.check
@@ -0,0 +1,9 @@
+inlineMaxSize.scala:7: warning: C::i()I is annotated @inline but could not be inlined:
+The size of the callsite method C::j()I
+would exceed the JVM method size limit after inlining C::i()I.
+
+ @inline final def j = i + i
+ ^
+error: No warnings can be incurred under -Xfatal-warnings.
+one warning found
+one error found