Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

26
mcs/tests/test-373.cs Normal file
View File

@@ -0,0 +1,26 @@
using C = System.Console;
class Test {
public static void Main (string[] args) {
switch (1) {
default:
switch (2) {
default:
int flag = 1; //makes the next if computable -- essential!
if (flag == 1) {
C.WriteLine("**** This one is expected");
break; //break-2
}
else goto lbl;
}
break; //break-1 This point is REACHABLE through break-2,
// contrary to the warning from compiler!
lbl:
C.WriteLine("**** THIS SHOULD NOT APPEAR, since break-1 was supposed to fire ***");
break;
}
}
}