classpool: add interface-table-ptr to method-table-ptr
[mate.git] / tests / Interface1.java
diff --git a/tests/Interface1.java b/tests/Interface1.java
new file mode 100644 (file)
index 0000000..a21cd05
--- /dev/null
@@ -0,0 +1,25 @@
+package tests;
+
+public class Interface1 implements Inf1_I1_local {
+       public int x;
+
+       public Interface1() {
+               this.x = 0x1337;
+       }
+
+       public int func1(int a) {
+               this.x = a;
+               return this.x;
+       }
+
+       public static void main(String []args) {
+               Interface1 o1 = new Interface1();
+               System.out.printf("o1.x: 0x%08x\n", o1.x);
+               Inf1_I1_local i1 = o1;
+               System.out.printf("o1.func1(0x11): 0x%08x\n", i1.func1(0x11));
+       }
+}
+
+interface Inf1_I1_local {
+       int func1(int a);
+}