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

bug-42136.cs « tests « mono - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dfa57cd99dab63e63a3fb45b00b971175f1b520c (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
28
29
using System;

public class Test {

	public static int test_0_liveness_exception() {
		int id = 1;

		try {
			id = 2;
			throw new Exception ();
		}
		catch (Exception) {
			if (id != 2)
				return id;
		}

		return 0;
	}

	public static int Main() {
		int res = 0;

		res = test_0_liveness_exception ();
		if (res != 0)
			Console.WriteLine ("error, test_0_liveness_exception res={0}", res);
		
		return 0;
	}
}