In mcs:
[mono.git] / mcs / tests / test-319-exe.cs
index 0625ec15950124c906cae2d07d90b24e50dbe229..34c91371a4022b60202b8f15263f601a8c3142c4 100644 (file)
@@ -17,6 +17,7 @@ public class ConstFields
        static readonly Decimal MaxValueDiv10 = MaxValue / 10;
             
         static decimal DecimalValue = -90;
+        const decimal SmallConstValue = .02M;
             
         static int Main ()
         {
@@ -31,6 +32,9 @@ public class ConstFields
             
             if (ConstDecimal1 != (-1) * ConstDecimal2)
                 return 3;
+            
+            if (!(SmallConstValue < 1 && SmallConstValue > 0))
+                return 4;
 
             // THIS IS TEST TOO
             Console.WriteLine (C.D);