summaryrefslogtreecommitdiffstats
path: root/tests/pureJava/InitializerFlowCf.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pureJava/InitializerFlowCf.java')
-rw-r--r--tests/pureJava/InitializerFlowCf.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/pureJava/InitializerFlowCf.java b/tests/pureJava/InitializerFlowCf.java
new file mode 100644
index 000000000..7885c0fe5
--- /dev/null
+++ b/tests/pureJava/InitializerFlowCf.java
@@ -0,0 +1,8 @@
+public class InitializerFlowCf {
+ { throw new Error("bad error"); } // ERR initializer can't complete normally
+
+ static { throw new Error("bad error #2"); } // ERR static initializer can't complete normally
+}
+
+
+