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:
authorRaja R Harinath <harinath@hurrynot.org>2006-05-23 14:39:14 +0400
committerRaja R Harinath <harinath@hurrynot.org>2006-05-23 14:39:14 +0400
commitba01d0bb7b0c79e77c64b6162b693fa9ed3a9957 (patch)
treecfbcffc1f44da4a9309086b561dfc189376d23c6 /mcs/tests/test-519.cs
parent9b2cd9a45cb8ab62e41700fafc8706f96ce22be1 (diff)
In mcs:
* flowanalysis.cs (UsageVector.MergeOrigins): If an origin is unreachable, skip it. (FlowBranchingException.Merge): Always propagate jumps, even if the finally block renders subsequent code unreachable. In gmcs: * flowanalysis.cs (UsageVector.MergeOrigins): If an origin is unreachable, skip it. (FlowBranchingException.Merge): Always propagate jumps, even if the finally block renders subsequent code unreachable. In tests: * test-519.cs: New test for compiler crash. In errors: * cs0139-3.cs, cs0139-4.cs, cs0139-5.cs, cs0139-6.cs: New regression tests for 'break' and 'continue' inside a try block. svn path=/trunk/mcs/; revision=60987
Diffstat (limited to 'mcs/tests/test-519.cs')
-rw-r--r--mcs/tests/test-519.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/mcs/tests/test-519.cs b/mcs/tests/test-519.cs
new file mode 100644
index 00000000000..1c78dbebe60
--- /dev/null
+++ b/mcs/tests/test-519.cs
@@ -0,0 +1,23 @@
+class Foo {
+ static int Main ()
+ {
+ try {
+ f ();
+ return 1;
+ } catch {
+ return 0;
+ }
+ }
+ static void f ()
+ {
+ try {
+ goto skip;
+ } catch {
+ goto skip;
+ } finally {
+ throw new System.Exception ();
+ }
+ skip:
+ ;
+ }
+}