invokevirtual: get the actual class at run-time
[mate.git] / Makefile
index 4a5863d35d0f0a83cd2d2e782883aec1871ac07b..335313767b402dc43dd49d18818183e062534b3c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -53,7 +53,11 @@ test: mate $(CLASS_FILES)
        ./$< tests/Instance1 | grep mainresult
        @printf "should be:  0x%08x 0x%08x\n" 0x55 0x11
        ./$< tests/Instance2 | grep mainresult
-       @printf "should be:  0x%08x\n" 0x198
+       @printf "should be:  0x%08x 0x%08x\n" 0x198 0x22
+       ./$< tests/Instance3 | grep mainresult
+       @printf "should be:  0x%08x 0x%08x\n" 0x33 0x44
+       ./$< tests/Instance4 | grep mainresult
+       @printf "should be:  0x%08x 0x%08x\n" 0x1337 0x1337
 
 %.class: %.java
        $(JAVAC) $<