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

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

public class X
{
	public static int Main ()
	{
                int v = 10;
                int a;

                switch (v) {
                case 0:
                        int i = v + 1;
                        a = i;
                        break;
                default:
                        i = 5;
                        a = i;
                        break;
                }
                if (a != 5)
                        return 1;


		v = 20;
		int r = 0;
		
		switch (v){
		case 20:
			r++;
			int j = 10;
			r += j;
			break;
		}
		if (r != 11)
			return 5;
		
                return 0;
        }
}