2010-05-19 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / test-48.cs
blob2cd3fc917f05a50cc93138eb460caf572450bdd0
1 using System;
3 public class Blah {
5 public const int i = 5;
7 public static int Main ()
9 const int aaa = 1, bbb = 2;
10 const int foo = 10;
12 int j = Blah.i;
14 if (j != 5)
15 return 1;
17 if (foo != 10)
18 return 1;
20 for (int i = 0; i < 5; ++i){
21 const int bar = 15;
23 Console.WriteLine (bar);
24 Console.WriteLine (foo);
26 if ((aaa + bbb) != 3)
27 return 2;
29 Console.WriteLine ("Constant emission test okay");
31 return 0;
34 public static void Test_1 ()
36 const long lk = 1024;
37 const long lM = 1024 * lk;
38 const long lG = 1024 * lM;
39 const long lT = 1024 * lG;