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

20 lines
402 B
C#

// CS0254: The right hand side of a fixed statement assignment may not be a cast expression
// Line: 16
// Compiler options: -unsafe
class Box {
public int value;
}
unsafe struct Obsolete {
}
class MainClass {
unsafe public static void Main ()
{
Box b = new Box ();
fixed (long* p = (long*)&b.value)
{
}
}
}