[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git] / mcs / errors / cs0208-2.cs
blobbe08c605a21151cd38f4ef66bd8ad297c325ed1d
1 // CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `CS208.Foo'
2 // Line: 20
3 // Compiler options: -unsafe
5 namespace CS208
7 public class Foo
11 public class Bar
13 unsafe static void Main ()
15 Foo f = new Foo ();
16 Foo *s = &f;