projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5aa5823
)
New test.
author
Marek Safar
<marek.safar@gmail.com>
Thu, 15 Oct 2009 16:05:03 +0000
(16:05 -0000)
committer
Marek 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]
patch
|
blob
diff --git a/mcs/errors/cs0214-9.cs
b/mcs/errors/cs0214-9.cs
new file mode 100644
(file)
index 0000000..
f80a80e
--- /dev/null
+++ b/
mcs/errors/cs0214-9.cs
@@ -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 ();
+ }
+}