1 // Compiler options: -unsafe
7 unsafe class UnsafeClass
9 public int* GetUnsafeValue ()
19 static void Test (D d)
23 unsafe static void UnsafeTests ()
25 UnsafeClass v = new UnsafeClass ();
27 int i = *v.GetUnsafeValue ();
32 public static void Main ()
34 Exception diffException;
39 } catch (Exception ex) {
49 int[] i_a = new int [] { 1,2,3 };
52 foreach (int t in i_a) {
57 Console.WriteLine (typeof (void));