[System] Throw PlatformNotSupportedException if NetworkInformation.NetworkChange...
[mono-project.git] / mcs / tests / test-691.cs
blob4fafcf7e531b6472e9c27cc4f66bd0740e8e1163
1 // Compiler options: -unsafe
3 using System;
5 namespace ConsoleApplication6
7 unsafe class Program
9 static int a;
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 };
22 int* ptr = the_ptr;
23 int** pptr = the_pptr;
25 fixed (int** pptr2 = &the_ptr) {
26 Console.WriteLine (new IntPtr (pptr));