--- /dev/null
+// CS0283: The type `int*' cannot be declared const\r
+// Line: 10\r
+// Compiler options: -unsafe\r
+\r
+unsafe class Test\r
+{\r
+ const int* o = null;\r
+}
\ No newline at end of file
--- /dev/null
+// CS1547: Keyword `void' cannot be used in this context
+// Line: 6
+
+class C {\r
+ object o = new void();\r
+}
\ No newline at end of file
--- /dev/null
+// CS1547: Keyword `void' cannot be used in this context
+// Line: 6
+
+class C\r
+{\r
+ int Foo ()\r
+ {\r
+ foreach (void v in this)\r
+ {\r
+ }\r
+ }\r
+}
\ No newline at end of file
--- /dev/null
+// CS0019: Operator `+' cannot be applied to operands of type `EventHandler' and `T'
+// Line: 10\r
+\r
+using System;\r
+\r
+public delegate void EventHandler (int i, int j);\r
+\r
+public class Button {\r
+\r
+ public event EventHandler Click;\r
+\r
+ public void Connect<T> () where T : class\r
+ {\r
+ Click += default (T);\r
+ }\r
+}\r
--- /dev/null
+// CS0029: Cannot implicitly convert type `T' to `int*'
+// Line : 8
+// Compiler options: -unsafe\r
+\r
+class T {\r
+ static unsafe int Main ()\r
+ {\r
+ int *a = default(T);\r
+ }\r
+}\r
--- /dev/null
+// CS0029: Cannot implicitly convert type `bool' to `int'
+// Line : 7
+\r
+class T {\r
+ static int Main ()\r
+ {\r
+ int a = default(bool);\r
+ }\r
+}\r
--- /dev/null
+// CS0030: Cannot convert type `X' to `S'\r
+// Line: 10\r
+\r
+struct S {\r
+}\r
+\r
+class X {\r
+ static void Main ()\r
+ {\r
+ S s = (S)default(X);\r
+ }\r
+}\r
--- /dev/null
+// CS1547: Keyword `void' cannot be used in this context
+// Line: 8
+
+class X
+{
+ static void Main ()
+ {
+ object o = default(void);
+ }
+}