summaryrefslogtreecommitdiff
path: root/mcs/tests/test-873.cs
blob: abe3b3b4ffa4ec832d7873c962d4bc0a1af287b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;

class Program
{
	static int Main ()
	{
		int foo = 9;

		switch (foo) {
		case 1:
			gotoTarget: 
			{
				return 0;
			}
		default:
			{
				if (foo != 0) {
					goto gotoTarget;
				}

				break;
			}
		}

		return 1;
	}
}