17 lines
166 B
C#
Raw Normal View History

// Compiler options: -unsafe
struct Foo
{
public int i;
}
public unsafe class test
{
static Foo* pFoo;
public static void Main ()
{
int* pi = &pFoo->i;
}
}