New test.
authorMarek Safar <marek.safar@gmail.com>
Thu, 15 Oct 2009 16:05:03 +0000 (16:05 -0000)
committerMarek Safar <marek.safar@gmail.com>
Thu, 15 Oct 2009 16:05:03 +0000 (16:05 -0000)
svn path=/trunk/mcs/; revision=144215

mcs/errors/cs0214-9.cs [new file with mode: 0644]

diff --git a/mcs/errors/cs0214-9.cs b/mcs/errors/cs0214-9.cs
new file mode 100644 (file)
index 0000000..f80a80e
--- /dev/null
@@ -0,0 +1,23 @@
+// CS214: Pointers and fixed size buffers may only be used in an unsafe context
+// Line: 21
+// Compiler options: -unsafe
+
+public unsafe delegate int* Bar ();
+
+class X
+{
+       unsafe static int* Test ()
+       {
+               return null;
+       }
+
+       static void Main ()
+       {
+               Bar b;
+               unsafe {
+                       b = Test;
+               }
+               
+               b ();
+       }
+}