2010-05-27 Marek Safar <marek.safar@gmail.com>
[mono.git] / mcs / tests / test-10.cs
index 20e1cc6ee816dbb7db9722fb9c679b90080cd977..b81ec78c2c4994ee1456b94ff7608d20bba58f43 100644 (file)
@@ -142,9 +142,31 @@ checked (                  (ulong) a), checked ((char) a), checked ((decimal) a));
                adouble (checked ((sbyte) a), checked ((byte) a), checked ((short) a), checked ((ushort) a), checked ((int) a), checked ((uint) a), checked ((long) a),
 checked (                      (ulong) a), checked ((char) a), checked ((float) a), (decimal) a);
        }
-
+       
+       void TestDecimal (decimal d)
+       {
+               double dec = (double)d;
+               decimal dec2 = (decimal)dec;
+       }
+       
        static void Main ()
        {
 
        }
 }
+
+enum E:byte {
+       Min = 9
+}
+
+class Test2 {
+       void ExtraTst ()
+       {
+               E error = E.Min - 9;
+               string s = (string)null;
+               const decimal d = -10.1m;
+               const long l = (long)d;
+               char ch = (char)E.Min;
+               bool b = (DBNull) null == null;
+       }
+}
\ No newline at end of file