Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-382.cs
1 using System;
2 using System.Reflection;
3
4 class Dec {
5         public const decimal MinValue = -79228162514264337593543950335m;
6         public static void Main ()
7         {
8                 System.Console.WriteLine ("Compiler said value is {0}", MinValue);
9                 FieldInfo fi = typeof (Dec).GetField ("MinValue");
10                 Decimal d = (Decimal) fi.GetValue (fi);
11                 System.Console.WriteLine ("Reflection said value is {0}", d);
12
13                 if (d != MinValue)
14                         throw new Exception ("decimal constant not initialized");
15         }
16 }