Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

23 lines
349 B
C#

// Compiler options: -unsafe
//
// Test for http://bugzilla.ximian.com/show_bug.cgi?id=62263
//
// We need to make sure that pointer arth uses the size of X
// not the size of X*
//
using System;
unsafe struct X {
int x, y, z;
public static int Main ()
{
X* foo = null;
if ((int) (foo + 1) != sizeof (X))
return 1;
return 0;
}
}