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

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

public class Blah {
	
	public const int i = 5;

	public static int Main ()
	{
		const int aaa = 1, bbb = 2;
		const int foo = 10;
		
		int j = Blah.i;

		if (j != 5)
			return 1;

		if (foo != 10)
			return 1;

		for (int i = 0; i < 5; ++i){
			const int bar = 15;

			Console.WriteLine (bar);
			Console.WriteLine (foo);
		}
		if ((aaa + bbb) != 3)
			return 2;

		Console.WriteLine ("Constant emission test okay");

		return 0;
	}
    
    public static void Test_1 ()
    {
        const long lk = 1024;
        const long lM = 1024 * lk;
        const long lG = 1024 * lM;
        const long lT = 1024 * lG;
    }
}