New tests.
[mono.git] / mcs / errors / cs0221-14.cs
diff --git a/mcs/errors/cs0221-14.cs b/mcs/errors/cs0221-14.cs
new file mode 100755 (executable)
index 0000000..c855e76
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0221: Constant value `-1' cannot be converted to a `ushort' (use `unchecked' syntax to override)
+// Line: 11
+
+class C
+{
+       delegate void D ();
+
+       static void Main ()
+       {
+               D d = unchecked (delegate {
+                       const ushort s = (ushort) -1;
+               });
+       }
+}