check: build run
build:
- $(JAVACCMD) -classpath $(JUNIT_JAR) -d . $(srcdir)/*.java
+ $(JAVACMD) -cp $(JASMIN_JAR) jasmin.Main $(srcdir)/*.j
+ $(JAVACCMD) -classpath $(JUNIT_JAR):$(srcdir) -d . $(srcdir)/*.java
run:
$(JAVACMD) -classpath $(JUNIT_JAR):. org.junit.runner.JUnitCore All
--- /dev/null
+/* tests/regression/bugzilla/PR148.java
+
+ Copyright (C) 2010
+ CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
+
+ This file is part of CACAO.
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2, or (at
+ your option) any later version.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301, USA.
+
+*/
+
+
+import org.junit.Test;
+import static org.junit.Assert.*;
+
+public class PR148 {
+ @Test
+ public void test() {
+ assertEquals(-1L, (long) testlcmp.compare(5, 7));
+ }
+}
--- /dev/null
+.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