summaryrefslogtreecommitdiff
path: root/test/files/pos/SI-7060.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/SI-7060.scala')
-rw-r--r--test/files/pos/SI-7060.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/pos/SI-7060.scala b/test/files/pos/SI-7060.scala
new file mode 100644
index 0000000000..c87620e020
--- /dev/null
+++ b/test/files/pos/SI-7060.scala
@@ -0,0 +1,11 @@
+object Test {
+
+ @inline final def mbarray_apply_minibox(array: Any, tag: Byte): Long =
+ if (tag == 0) {
+ array.asInstanceOf[Array[Long]](0)
+ } else
+ array.asInstanceOf[Array[Byte]](0).toLong
+
+ def crash_method(): Unit =
+ mbarray_apply_minibox(null, 0)
+}