1 // Compiler options: -unsafe
5 namespace ConsoleApplication6
10 static int* the_ptr
= (int*) 0xdeadbeaf;
11 static int** the_pptr
= (int**) 0xdeadbeaf;
13 public static void Main ()
15 Console
.WriteLine ("TEST: {0:x}", new IntPtr (the_pptr
).ToInt64 ());
17 fixed (int* a_ptr
= &a
) {
18 Console
.WriteLine (new IntPtr (a_ptr
));
20 int*[] array
= { the_ptr }
;
21 int*[] array2
= { a_ptr }
;
23 int** pptr
= the_pptr
;
25 fixed (int** pptr2
= &the_ptr
) {
26 Console
.WriteLine (new IntPtr (pptr
));