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:
authorMartin Baulig <martin@novell.com>2002-08-23 21:37:07 +0400
committerMartin Baulig <martin@novell.com>2002-08-23 21:37:07 +0400
commit283f8c047e09e46f0292feb1eb8717186fa3a9ed (patch)
tree1ae3401cb35b5c6dccda6cae3cc17601b8707f24 /mcs/tests/test-154.cs
parentcb9a938821e302024bbc490c4820e42623c06522 (diff)
Added one more testcase to this test.
svn path=/trunk/mcs/; revision=6958
Diffstat (limited to 'mcs/tests/test-154.cs')
-rw-r--r--mcs/tests/test-154.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/mcs/tests/test-154.cs b/mcs/tests/test-154.cs
index bac5466a616..56b5be7509f 100644
--- a/mcs/tests/test-154.cs
+++ b/mcs/tests/test-154.cs
@@ -278,4 +278,23 @@ public class X
throw new FormatException ();
}
}
+
+ // code after try/catch block is unreachable. always returns.
+ static int test19 () {
+ int res;
+ int a = Environment.NewLine.Length;
+ int fin = 0;
+
+ try {
+ res = 10/a;
+ throw new NotImplementedException ();
+ } catch (NotImplementedException e) {
+ fin = 2;
+ throw new NotImplementedException ();
+ } finally {
+ fin = 1;
+ }
+ return res;
+ }
+
}