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

test-525.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e0655b25609af8c0488130bf99e07bd1c61e5dad (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
30
31
32
33
34
35
36
37
38
39
40
41
using System;

class X {
	~X ()
	{
		Console.WriteLine ("DESTRUCTOR!");
	}

        public static int Test1()
	{
                try {
                        return 8;
                } catch (Exception) {}  
                System.Console.WriteLine("Shouldn't get here");
		return 9;
        }

	public static void Test2()
	{
		int[] vars = { 3, 4, 5 };

		foreach (int a in vars) {
			try {
				continue;
			} catch (Exception) {
				break;
			}
		}
	}

        public static void Main() {
		Test1 ();
		Test2 ();

                try {
                        return;
                } catch (Exception) {}  
                System.Console.WriteLine("Shouldn't get here");
		return;
        }
}