summaryrefslogtreecommitdiff
path: root/test/files/pos/constant-warning.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/constant-warning.check')
-rw-r--r--test/files/pos/constant-warning.check4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/pos/constant-warning.check b/test/files/pos/constant-warning.check
new file mode 100644
index 0000000000..f7df2165d1
--- /dev/null
+++ b/test/files/pos/constant-warning.check
@@ -0,0 +1,4 @@
+constant-warning.scala:2: warning: Evaluation of a constant expression results in an arithmetic error: / by zero
+ val fails = 1 + 2 / (3 - 2 - 1)
+ ^
+one warning found