summaryrefslogtreecommitdiff
path: root/test/files/run/t8601e/StaticInit.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t8601e/StaticInit.java')
-rw-r--r--test/files/run/t8601e/StaticInit.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/run/t8601e/StaticInit.java b/test/files/run/t8601e/StaticInit.java
new file mode 100644
index 0000000000..7543ed98b8
--- /dev/null
+++ b/test/files/run/t8601e/StaticInit.java
@@ -0,0 +1,8 @@
+public class StaticInit {
+ static {
+ if ("".isEmpty()) {
+ throw new RuntimeException();
+ }
+ }
+ public static int fld = 42;
+}