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-25 16:43:41 +0400
committerMarek Safar <marek.safar@gmail.com>2004-05-25 16:43:41 +0400
commitff7f9b6e20e175850ca3e5fc11c8517072d35388 (patch)
treeb34a1417a9cf6334c8262b31562002e952607fb6 /mcs/errors/cs0214-2.cs
parentc9457011760678365d5ee7a8c8d3c4eadfdbd2ff (diff)
New test
svn path=/trunk/mcs/; revision=28040
Diffstat (limited to 'mcs/errors/cs0214-2.cs')
-rwxr-xr-xmcs/errors/cs0214-2.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/mcs/errors/cs0214-2.cs b/mcs/errors/cs0214-2.cs
index 6e47b4905f9..79ddc402370 100755
--- a/mcs/errors/cs0214-2.cs
+++ b/mcs/errors/cs0214-2.cs
@@ -1,9 +1,15 @@
+// cs0214: Pointer can only be used in unsafe context
+// Line: 9
// Compiler options: -unsafe
class X {
static void Main ()
{
int b = 0;
- int a = (int *) b;
+ method ((int *) b);
}
+
+ unsafe static void method (int* i)
+ {
+ }
}