a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
23 lines
349 B
C#
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;
|
|
}
|
|
}
|