aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/SI-7060.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/SI-7060.scala')
-rw-r--r--tests/untried/pos/SI-7060.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/untried/pos/SI-7060.scala b/tests/untried/pos/SI-7060.scala
new file mode 100644
index 000000000..c87620e02
--- /dev/null
+++ b/tests/untried/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)
+}