summaryrefslogtreecommitdiff
path: root/test/files/run/t7852.check
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-09-17 15:39:11 +0200
committerJason Zaugg <jzaugg@gmail.com>2013-09-17 15:39:11 +0200
commit2bb960c68091b804d8ace1f76460279f6567a193 (patch)
tree2b8e953d653c90c29216b4b5b41eabe40ecf83a1 /test/files/run/t7852.check
parent9dbc321504ad5550638d6d7c2b3cd2f98273cf74 (diff)
downloadscala-2bb960c68091b804d8ace1f76460279f6567a193.tar.gz
scala-2bb960c68091b804d8ace1f76460279f6567a193.tar.bz2
scala-2bb960c68091b804d8ace1f76460279f6567a193.zip
SI-7852 Test to show the status quo bytecode for "" == ...
Will be somewhat leaner after the next commit.
Diffstat (limited to 'test/files/run/t7852.check')
-rw-r--r--test/files/run/t7852.check30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/files/run/t7852.check b/test/files/run/t7852.check
new file mode 100644
index 0000000000..fdced88fa8
--- /dev/null
+++ b/test/files/run/t7852.check
@@ -0,0 +1,30 @@
+class scala.tools.asm.tree.MethodNode
+ LDC ""
+ ALOAD 0
+ INVOKEVIRTUAL java/lang/Object.toString ()Ljava/lang/String;
+ ASTORE 1
+ DUP
+ IFNONNULL L0
+ POP
+ ALOAD 1
+ IFNULL L1
+ GOTO L2
+ L0
+ FRAME FULL [Lean java/lang/String] [java/lang/String]
+ ALOAD 1
+ INVOKEVIRTUAL java/lang/Object.equals (Ljava/lang/Object;)Z
+ IFEQ L2
+ L1
+ FRAME SAME
+ ICONST_1
+ GOTO L3
+ L2
+ FRAME SAME
+ ICONST_0
+ L3
+ FRAME SAME1 I
+ POP
+ RETURN
+ MAXSTACK = 2
+ MAXLOCALS = 2
+