This is a test case to cover switch expansion in Reader.
--- /dev/null
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+//
+
+using System;
+class SwitchTest
+{
+ const int Pass = 100;
+ const int Fail = -1;
+
+ public static int Main()
+ {
+ int sum =0;
+ for(int i=2; i < 5; i++) {
+ switch(i) {
+ case 2:
+ sum += i;
+ break;
+ case 3:
+ sum += i;
+ break;
+ default:
+ sum -= 5;
+ break;
+ }
+ }
+
+ return sum == 0 ? Pass : Fail;
+ }
+}
\ No newline at end of file