diff options
author | Marek Safar <marek.safar@gmail.com> | 2004-05-25 16:43:41 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2004-05-25 16:43:41 +0400 |
commit | ff7f9b6e20e175850ca3e5fc11c8517072d35388 (patch) | |
tree | b34a1417a9cf6334c8262b31562002e952607fb6 /mcs/errors/cs0214-2.cs | |
parent | c9457011760678365d5ee7a8c8d3c4eadfdbd2ff (diff) |
New test
svn path=/trunk/mcs/; revision=28040
Diffstat (limited to 'mcs/errors/cs0214-2.cs')
-rwxr-xr-x | mcs/errors/cs0214-2.cs | 8 |
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) + { + } } |