summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0165-50.cs
blob: 1695000e74601f6a4ce6f8fe2288612908aa628c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// CS0165: Use of unassigned local variable `u'
// Line: 15

class X
{
	public static void Main ()
	{
		int i = 0;
		int u;
		switch (i) {
			case 1:
				A1:
				goto case 2;
			case 2:
				i = u;
				goto case 3;
			case 3:
				goto case 4;
			case 4:
				goto A1;
		}
	}
}