X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ferrors%2Fcs0214-2.cs;h=22c81e95bd275b2f94a738b1b561a00330cd7931;hb=a5a541e5501eaae6d41be44461d3cdaba84e7736;hp=79ddc40237067ab10a3690923e28928e65360393;hpb=7ff8f29ff29fa3f08ef305ac43ef079097323286;p=mono.git diff --git a/mcs/errors/cs0214-2.cs b/mcs/errors/cs0214-2.cs old mode 100755 new mode 100644 index 79ddc402370..22c81e95bd2 --- a/mcs/errors/cs0214-2.cs +++ b/mcs/errors/cs0214-2.cs @@ -1,15 +1,15 @@ -// cs0214: Pointer can only be used in unsafe context +// cs0214-2.cs: Pointers and fixed size buffers may only be used in an unsafe context // Line: 9 // Compiler options: -unsafe -class X { - static void Main () - { - int b = 0; - method ((int *) b); - } - - unsafe static void method (int* i) +public class Test +{ + public void Foo () { + Foo (null); } + + public static unsafe void Foo (int* buf) { } } + +