progs/test-small.j
changeset 375 bf36664a3196
child 708 4980f421b3b0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/progs/test-small.j	Tue Nov 17 04:53:14 2015 +0000
@@ -0,0 +1,29 @@
+.class public test.test
+.super java/lang/Object
+
+.method public <init>()V
+   aload_0
+   invokenonvirtual java/lang/Object/<init>()V
+   return
+.end method
+
+.method public static write(I)V 
+    .limit locals 1 
+    .limit stack 2
+    getstatic java/lang/System/out Ljava/io/PrintStream; 
+    iload 0 
+    invokevirtual java/io/PrintStream/println(I)V 
+    return 
+.end method
+
+.method public static main([Ljava/lang/String;)V
+   .limit locals 200
+   .limit stack 200
+   ldc 1
+   ldc 2
+   iadd
+   istore 0
+   iload 0
+   invokestatic test/test/write(I)V
+   return
+.end method