diff options
author | Marek Safar <marek.safar@gmail.com> | 2004-05-28 16:13:03 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2004-05-28 16:13:03 +0400 |
commit | ae2d2298b88f6002b2856664f3d7968f8eb5193f (patch) | |
tree | 789e4821ad32c9513aa315391401dd9d6da2c630 /mcs/errors/cs0214-5.cs | |
parent | f49a9b2ba04381de258c3569e5abcaf13938bf8a (diff) |
new test
svn path=/trunk/mcs/; revision=28344
Diffstat (limited to 'mcs/errors/cs0214-5.cs')
-rw-r--r-- | mcs/errors/cs0214-5.cs | 18 |
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; + } +} |