for "build" config, import corlib common sources at unix instead (#11989)
[mono-project.git] / mcs / errors / cs0165-22.cs
blob6b76beba2f98dd8b1b67ea05e7aa2cfae6b2a131
1 // CS0165: Use of unassigned local variable `x'
2 // Line: 17
4 using System;
6 class Program
8 static int Main ()
10 int foo = 9;
11 int x;
13 switch (foo) {
14 case 1:
15 x = 1;
16 gotoTarget:
18 Console.WriteLine (x);
20 break;
21 default:
23 if (foo != 0) {
24 goto gotoTarget;
27 break;
31 return 1;