1 // Compiler options: -unsafe
4 using System
.Reflection
;
9 public static void Test ()
13 fixed (char *chars
= s
) {
18 public static bool StringNull (string s
)
27 public static bool ArrayNull (int[] a
)
36 public static int Main ()
40 var m
= typeof (Program
).GetMethod ("Test");
41 var lv
= m
.GetMethodBody ().LocalVariables
.Where (l
=> l
.LocalType
== typeof (char*)).Single ();
45 if (!StringNull (null))
48 if (!ArrayNull (null))