Added regression test for PR148.
[cacao.git] / tests / regression / bugzilla / testlcmp.j
diff --git a/tests/regression/bugzilla/testlcmp.j b/tests/regression/bugzilla/testlcmp.j
new file mode 100644 (file)
index 0000000..1c2fd80
--- /dev/null
@@ -0,0 +1,21 @@
+.class public testlcmp
+.super java/lang/Object
+
+; ======================================================================
+
+.method public <init>()V
+   aload_0
+   invokenonvirtual java/lang/Object/<init>()V
+   return
+.end method
+
+; ======================================================================
+
+.method public static compare(JJ)I
+       .limit locals 4
+       .limit stack 4
+       lload_0
+       lload_2
+       lcmp
+       ireturn
+.end method