Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-185.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6f06b22be695247aed3514bb7ea4922da91f2c5f (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
using System;

class X
{
	public static int Test (int x)
	{
		for (;;) {
			if (x != 1)
				x--;
			else
				break;
			return 5;
		}
		return 0;
	}

	static int Main ()
	{
		if (Test (1) != 0)
			return 1;

		if (Test (2) != 5)
			return 2;

		return 0;
	}
}