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-03 13:13:05 +0400
committerRaja R Harinath <harinath@hurrynot.org>2006-05-03 13:13:05 +0400
commit4d7ff401fd91406dd755469b89781e142e0fb98a (patch)
treea947bd51e72087a01382adc422e402d111e14cae /mcs/tests/test-503.cs
parent40eeecd71eb27e371411c6b6c899e43cf4c34ff3 (diff)
In mcs:
Fix test-503.cs * statement.cs (Break.Resolve): Simplify. Move responsibility for error reporting to ... * flowanalysis.cs (FlowBranching.AddBreakOrigin) ... this. Rename from 'AddBreakVector'. Add new location argument. Return a bool indicating whether the 'break' crosses an unwind-protect. (FlowBranchingException.AddBreakOrigin): Add. (FlowBranchingException.Merge): Propagate 'break's to surrounding flowbranching after updating with the effects of the 'finally' clause. (FlowBranchingBreakable): New common base class for FlowBranchingLoop and FlowBranchingSwitch. In gmcs: Fix test-503.cs * statement.cs (Break.Resolve): Simplify. Move responsibility for error reporting to ... * flowanalysis.cs (FlowBranching.AddBreakOrigin) ... this. Rename from 'AddBreakVector'. Add new location argument. Return a bool indicating whether the 'break' crosses an unwind-protect. (FlowBranchingException.AddBreakOrigin): Add. (FlowBranchingException.Merge): Propagate 'break's to surrounding flowbranching after updating with the effects of the 'finally' clause. (FlowBranchingBreakable): New common base class for FlowBranchingLoop and FlowBranchingSwitch. In tests: * test-503.cs: Distilled from System.Web.Hosting/ApplicationHost.cs. svn path=/trunk/mcs/; revision=60206
Diffstat (limited to 'mcs/tests/test-503.cs')
-rw-r--r--mcs/tests/test-503.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/mcs/tests/test-503.cs b/mcs/tests/test-503.cs
new file mode 100644
index 00000000000..e94e764a348
--- /dev/null
+++ b/mcs/tests/test-503.cs
@@ -0,0 +1,15 @@
+// Compiler options: -warnaserror
+
+class Foo {
+ static int Main ()
+ {
+ for (;;) {
+ try {
+ break;
+ } catch {
+ continue;
+ }
+ }
+ return 0;
+ }
+}