summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0429-4.cs
blob: d80803996744eadffa1d1b8b0b78120dba5b8ad7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// CS0429: Unreachable expression code detected
// Line: 12
// Compiler options: -warnaserror

public class X
{
	static void test (int stop)
	{
		int pos = 0;
		do {
			break;
		} while (pos < stop);
	}
}