1 // Compiler options: -unsafe
5 namespace MonoPointerBugTest
16 public static int Main ()
19 MyStructure structure
= new MyStructure ();
21 MyStructure
* pointer1
= &structure
;
22 MyStructure
* pointer2
= pointer1
;
24 //on the Mac this works like: pointer2++;
27 int difference
= (int) ((byte*) pointer2
- (byte*) pointer1
);
28 if (difference
!= 120)