[bcl] Update BCL Linked Size
[mono-project.git] / mcs / tests / test-409.cs
blob44d8b1e097219a8fd1c66a71349919935e244a96
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 public static int Main ()
16 X* foo = null;
18 if ((int) (foo + 1) != sizeof (X))
19 return 1;
20 return 0;