codeowners update
[mono.git] / mcs / tests / test-640.cs
index 705149a365c3b83b0980de48230f8b4c04fb7778..c85253596cbc7af4eca4ebcb4a31db2e15db2562 100644 (file)
@@ -3,6 +3,11 @@ enum MyEnum : byte
        Value_1 = 1
 }
 
+enum E : ushort
+{
+       V = 1
+}
+
 public class C
 {
        public static int Main ()
@@ -28,6 +33,11 @@ public class C
                if (b != (MyEnum)254)
                        return 4;
 
+               var e = E.V;
+               checked {
+                       var res = ~e;
+               }
+
                System.Console.WriteLine ("OK");
                return 0;
        }