a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
20 lines
297 B
C#
20 lines
297 B
C#
// CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `CS208.Foo'
|
|
// Line: 20
|
|
// Compiler options: -unsafe
|
|
|
|
namespace CS208
|
|
{
|
|
public class Foo
|
|
{
|
|
}
|
|
|
|
public class Bar
|
|
{
|
|
unsafe static void Main ()
|
|
{
|
|
Foo f = new Foo ();
|
|
Foo *s = &f;
|
|
}
|
|
}
|
|
}
|