bring Mono Security to monotouch
[mcs.git] / tests / test-409.cs
blobf35fd3eb78558cca73eea36c4730e61dd5d64c39
1 // Compiler options: -unsafe
3 //
4 // Test for http://bugzilla.ximian.com/show_bug.cgi?id=62263
5 //
6 // We need to make sure that pointer arth uses the size of X
7 // not the size of X*
8 //
10 using System;
11 unsafe struct X {
12 int x, y, z;
14 static int Main ()
16 X* foo = null;
18 if ((int) (foo + 1) != sizeof (X))
19 return 1;
20 return 0;