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

// this requires a multi-pass algorithm for unreachable code detection
// punting for now

class Foo {
	static void Main ()
	{
		goto skip;
	a:
		goto a;
	skip:
		return;
	}
}