Move Enum and CorElementType to shared (dotnet/coreclr#23177)
[mono-project.git] / mcs / tests / test-403.cs
blobc757fd54c1eeb36ea266c799939094fa75ba3d03
1 // Compiler options: -unsafe
3 // this tests making a pointer to a pointer
5 using System;
7 unsafe class Foo
9 public static int Main ()
11 int a;
12 int *b;
13 int **c;
15 a = 42;
16 b = &a;
17 c = &b;
19 Console.WriteLine ("*c == b : {0}", *c == b);
20 Console.WriteLine ("**c == a : {0}", **c == a);
22 if (*c == b && **c == a)
24 Console.WriteLine ("Test passed");
25 return 0;
27 else
29 Console.WriteLine ("Test failed");
30 return 1;