Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-48.cs
1 using System;
2
3 public class Blah {
4         
5         public const int i = 5;
6
7         public static int Main ()
8         {
9                 const int aaa = 1, bbb = 2;
10                 const int foo = 10;
11                 
12                 int j = Blah.i;
13
14                 if (j != 5)
15                         return 1;
16
17                 if (foo != 10)
18                         return 1;
19
20                 for (int i = 0; i < 5; ++i){
21                         const int bar = 15;
22
23                         Console.WriteLine (bar);
24                         Console.WriteLine (foo);
25                 }
26                 if ((aaa + bbb) != 3)
27                         return 2;
28
29                 Console.WriteLine ("Constant emission test okay");
30
31                 return 0;
32         }
33     
34     public static void Test_1 ()
35     {
36         const long lk = 1024;
37         const long lM = 1024 * lk;
38         const long lG = 1024 * lM;
39         const long lT = 1024 * lG;
40     }
41 }