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

test-514.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a1c1e7b4d7256c73f354a387fdc78b015bf1963f (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
// Compiler options: -warnaserror -w:2

using System;
class X {

	public static void HandleConflict (int a) {
		if (a != 1)
			goto throwException;
		if (a != 2)
			goto throwException;
		return;
	throwException:
		throw new Exception ();
	}

        public static int Main ()
	{
		int ret = 1;
		try { HandleConflict (1); }
		catch {
			try { HandleConflict (2); }
			catch { ret = 0; }
		}
		return ret;
	}
}