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 ();
31 byte* buffer
= stackalloc byte[8192];
35 public static void Main ()
37 Exception diffException
;
42 } catch (Exception ex
) {
52 int[] i_a
= new int [] { 1,2,3 }
;
55 foreach (int t
in i_a
) {
60 Console
.WriteLine (typeof (void));