new insn: fix wrong behaviour on lazy class init
[mate.git] / tests / Instance5.java
diff --git a/tests/Instance5.java b/tests/Instance5.java
new file mode 100644 (file)
index 0000000..d3f3fb8
--- /dev/null
@@ -0,0 +1,19 @@
+package tests;
+
+public class Instance5 {
+       public static void main(String []args) {
+               int i_am_null = 0;
+               if (i_am_null > 0) {
+                       new Instance5_notload();
+                       System.out.printf("loaded notload stuff o_O\n");
+               } else {
+                       System.out.printf("Nothing to do here\n");
+               }
+       }
+}
+
+class Instance5_notload {
+       static {
+               System.out.printf("sup, I'm Instance5_notload\n");
+       }
+}