aboutsummaryrefslogtreecommitdiff
path: root/tests/run/exceptions-2.check
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-06-25 09:45:27 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-07-13 15:31:16 +0200
commitef536f00d9d480f28db3093b9dc09a90041cfb74 (patch)
treeca82afa7a37ce866978b0b66904941672f2dacc3 /tests/run/exceptions-2.check
parent9185428b63b138f8c05ade5592e59956296b5128 (diff)
downloaddotty-ef536f00d9d480f28db3093b9dc09a90041cfb74.tar.gz
dotty-ef536f00d9d480f28db3093b9dc09a90041cfb74.tar.bz2
dotty-ef536f00d9d480f28db3093b9dc09a90041cfb74.zip
Enable 61 tests that succeed.
Diffstat (limited to 'tests/run/exceptions-2.check')
-rw-r--r--tests/run/exceptions-2.check59
1 files changed, 59 insertions, 0 deletions
diff --git a/tests/run/exceptions-2.check b/tests/run/exceptions-2.check
new file mode 100644
index 000000000..4f8244800
--- /dev/null
+++ b/tests/run/exceptions-2.check
@@ -0,0 +1,59 @@
+exceptions-2.scala:267: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses
+ try { 1 } catch { case e: java.io.IOException => () }
+ ^
+nested1:
+Innermost finally
+Outermost finally
+nested2:
+Innermost finally
+Outermost finally
+mixed:
+10
+Finally!
+withValue1:
+Oh, oh
+10
+withValue2:
+droped a null
+null
+method2:
+10
+Exception occurred
+method3:
+Caught an NPE
+tryFinallyTry:
+Silently ignore exception in finally
+valInFinally:
+Abc
+tryAndValInFinally
+Abc
+=================
+NoExcep.method2:
+Hello, world
+NoExcep.method3:
+method3
+NoExcep.method4:
+..
+Return inside body:
+Normal execution...
+inner finally
+Outer finally
+Return inside synchronized body:
+Synchronized normal execution...
+inner finally
+Outer finally
+Return inside body and return in finally:
+Normal execution...
+inner finally
+Outer finally
+Return inside body and return in finally inside finally:
+Normal execution...
+inner finally
+finally inside finally
+Outer finally
+Throw in catch and finally:
+ABC
+Return with finally clause that cleans the stack
+Normal execution...
+inner finally
+Outer finally