aboutsummaryrefslogtreecommitdiffstats
path: root/tests/errors/ConstantOneOverZero.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errors/ConstantOneOverZero.java')
-rw-r--r--tests/errors/ConstantOneOverZero.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/errors/ConstantOneOverZero.java b/tests/errors/ConstantOneOverZero.java
new file mode 100644
index 000000000..b9ac43198
--- /dev/null
+++ b/tests/errors/ConstantOneOverZero.java
@@ -0,0 +1,4 @@
+class ConstantOneOverZero {
+ int i = 1 / 0;
+ int j = 1 % 0;
+ }