Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2004-05-28 16:13:03 +0400
committerMarek Safar <marek.safar@gmail.com>2004-05-28 16:13:03 +0400
commitae2d2298b88f6002b2856664f3d7968f8eb5193f (patch)
tree789e4821ad32c9513aa315391401dd9d6da2c630 /mcs/errors/cs0214-5.cs
parentf49a9b2ba04381de258c3569e5abcaf13938bf8a (diff)
new test
svn path=/trunk/mcs/; revision=28344
Diffstat (limited to 'mcs/errors/cs0214-5.cs')
-rw-r--r--mcs/errors/cs0214-5.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/mcs/errors/cs0214-5.cs b/mcs/errors/cs0214-5.cs
new file mode 100644
index 00000000000..ae7e1eecd29
--- /dev/null
+++ b/mcs/errors/cs0214-5.cs
@@ -0,0 +1,18 @@
+// cs0214: Pointer can only be used in unsafe context
+// Line: 16
+// Compiler options: -unsafe
+
+using System;
+
+public class Driver
+{
+ public static unsafe byte* Frob
+ {
+ get { return (byte *) 0; }
+ }
+
+ public static void Main ()
+ {
+ IntPtr q = (IntPtr) Frob;
+ }
+}