Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2013-11-21 17:41:58 +0400
committerMarek Safar <marek.safar@gmail.com>2013-11-21 17:43:08 +0400
commitd12330eda7746321b4611865d11e932e53ac55b8 (patch)
tree57e313f1d1f4a6539341f234c10ec4b6f3b99d44 /mcs/tests/test-519.cs
parentcc4049bcf262eed46790849a697d3b27bf8bc45a (diff)
[mcs] Reachability and flow analysis rewrite to work on resolved statements and expressions
Diffstat (limited to 'mcs/tests/test-519.cs')
-rw-r--r--mcs/tests/test-519.cs23
1 files changed, 22 insertions, 1 deletions
diff --git a/mcs/tests/test-519.cs b/mcs/tests/test-519.cs
index 35ca796e054..8b8bd6bf2e8 100644
--- a/mcs/tests/test-519.cs
+++ b/mcs/tests/test-519.cs
@@ -1,3 +1,5 @@
+using System;
+
class Foo {
public static int Main ()
{
@@ -5,9 +7,17 @@ class Foo {
f ();
return 1;
} catch {
- return 0;
}
+
+ try {
+ f2 ();
+ return 2;
+ } catch (ApplicationException) {
+ }
+
+ return 0;
}
+
static void f ()
{
try {
@@ -20,4 +30,15 @@ class Foo {
skip:
;
}
+
+ static void f2 ()
+ {
+ try {
+ goto FinallyExit;
+ } finally {
+ throw new ApplicationException ();
+ }
+ FinallyExit:
+ Console.WriteLine ("Too late");
+ }
}