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:
authorRaja R Harinath <harinath@hurrynot.org>2005-04-13 14:55:18 +0400
committerRaja R Harinath <harinath@hurrynot.org>2005-04-13 14:55:18 +0400
commitd60f53388131890b3d9ae59d1cb9edb1df87c6eb (patch)
tree5b82ea547f4a838ce8d268cb50f2c837cbf33beb /mcs/errors/cs0208-7.cs
parentd2241d5f92d27deb56bbe17beb76a63965598de3 (diff)
New test.
svn path=/trunk/mcs/; revision=42900
Diffstat (limited to 'mcs/errors/cs0208-7.cs')
-rw-r--r--mcs/errors/cs0208-7.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/mcs/errors/cs0208-7.cs b/mcs/errors/cs0208-7.cs
new file mode 100644
index 00000000000..add42d005af
--- /dev/null
+++ b/mcs/errors/cs0208-7.cs
@@ -0,0 +1,14 @@
+// cs0208: cannot declare a pointer to a managed type ('foo')
+// Line: 11
+// Compiler options: -unsafe
+
+struct foo {
+ public delegate void bar (int x);
+ public bar barf;
+}
+
+unsafe class t {
+ static void Main () {
+ foo *f = null;
+ }
+}