summaryrefslogtreecommitdiff
path: root/test/pending/jvm/patmat_opt_no_nullcheck/test.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/pending/jvm/patmat_opt_no_nullcheck/test.scala')
-rw-r--r--test/pending/jvm/patmat_opt_no_nullcheck/test.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/pending/jvm/patmat_opt_no_nullcheck/test.scala b/test/pending/jvm/patmat_opt_no_nullcheck/test.scala
new file mode 100644
index 0000000000..5a4a398b67
--- /dev/null
+++ b/test/pending/jvm/patmat_opt_no_nullcheck/test.scala
@@ -0,0 +1,14 @@
+/*
+ * filter: inliner warning; re-run with
+ */
+import scala.tools.partest.{ BytecodeTest, ASMConverters }
+
+object Test extends BytecodeTest {
+ def show: Unit = {
+ val classNode = loadClassNode("SameBytecode")
+ // ASM and GenBCode assign variable slots slightly differently
+ val instrsA = ASMConverters.instructionsFromMethod(getMethod(classNode, "a"))
+ val instrsB = ASMConverters.instructionsFromMethod(getMethod(classNode, "b"))
+ assert(ASMConverters.equivalentBytecode(instrsA, instrsB), diffInstructions(instrsA, instrsB)) // doesn't work
+ }
+}