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-11 14:47:15 +0400
committerRaja R Harinath <harinath@hurrynot.org>2006-05-11 14:47:15 +0400
commit5345adb67970ac045cace08328bf2de7e6ca91a5 (patch)
treea0d572cb4f2d946ad0613847a7e8808263ae3199 /mcs/tests/test-510.cs
parent34d5e7aced90155b890207f31a63e2e1891d1672 (diff)
In mcs:
* flowanalysis.cs (UsageVector.MergeJumpOrigins): Kill. (FlowBranchingBlock.Label): Use UsageVector.MergeOrigins. (FlowBranchingException.Label): Likewise. In gmcs: * flowanalysis.cs (UsageVector.MergeJumpOrigins): Kill. (FlowBranchingBlock.Label): Use UsageVector.MergeOrigins. (FlowBranchingException.Label): Likewise. In tests: * test-154.cs (test39): Move buggy testcase to errors/cs0177-7.cs. Fix it and move ... * test-510.cs: ... here. In errors: * cs0177-7.cs: Taken from erroneous sub-test in tests/test-154.cs. svn path=/trunk/mcs/; revision=60584
Diffstat (limited to 'mcs/tests/test-510.cs')
-rw-r--r--mcs/tests/test-510.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/mcs/tests/test-510.cs b/mcs/tests/test-510.cs
new file mode 100644
index 00000000000..27558f64686
--- /dev/null
+++ b/mcs/tests/test-510.cs
@@ -0,0 +1,30 @@
+class Foo {
+ static void test39 (ref int a)
+ {
+ int x_0 = 0;
+ int ll_1 = 0;
+
+ switch (0) {
+ default:
+ switch (x_0) {
+ default:
+ if (ll_1 == 0)
+ break;
+ else
+ goto k_1;
+ }
+ a = 5;
+ break;
+ k_1:
+ break;
+ }
+ }
+
+ public static void Main ()
+ {
+ int a = 0;
+ test39 (ref a);
+ if (a != 5)
+ throw new System.Exception ("reachable code got marked as unreachable");
+ }
+}