aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t7110.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t7110.check')
-rw-r--r--tests/untried/neg/t7110.check6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/untried/neg/t7110.check b/tests/untried/neg/t7110.check
new file mode 100644
index 000000000..e484dc432
--- /dev/null
+++ b/tests/untried/neg/t7110.check
@@ -0,0 +1,6 @@
+t7110.scala:2: warning: A try without a catch or finally is equivalent to putting its body in a block; no exceptions are handled.
+ try { ??? } // warn
+ ^
+error: No warnings can be incurred under -Xfatal-warnings.
+one warning found
+one error found