summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0162-20.cs
blob: e2bb4dcda6fd733218f097f30d7724d13bcb3f55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// CS0162: Unreachable code detected
// Line: 14
// Compiler options: -warnaserror

using System;

class X
{

	public static void Main ()
	{
		goto X;
	A:
		bool b = false;
		if (b) {
			goto A;
		}
	X:
		return;
	}
}