diff options
Diffstat (limited to 'tests/untried/neg/check-dead.check')
-rw-r--r-- | tests/untried/neg/check-dead.check | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/untried/neg/check-dead.check b/tests/untried/neg/check-dead.check new file mode 100644 index 000000000..2150a942b --- /dev/null +++ b/tests/untried/neg/check-dead.check @@ -0,0 +1,15 @@ +check-dead.scala:7: warning: dead code following this construct + def z1 = y1(throw new Exception) // should warn + ^ +check-dead.scala:10: warning: dead code following this construct + def z2 = y2(throw new Exception) // should warn + ^ +check-dead.scala:29: warning: dead code following this construct + throw new Exception // should warn + ^ +check-dead.scala:33: warning: dead code following this construct + throw new Exception // should warn + ^ +error: No warnings can be incurred under -Xfatal-warnings. +four warnings found +one error found |