[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git] / mcs / errors / cs0619-24.cs
blob48a14b7ad8e06bcc6061d4d247e2554748d9949a
1 // CS0619: `Obsolete' is obsolete: `'
2 // Line: 19
3 // Compiler options: -unsafe
5 class Box {
6 public Helper o;
9 [System.Obsolete("", true)]
10 unsafe struct Obsolete {
13 unsafe struct Helper {}
15 class MainClass {
16 unsafe public static void Main ()
18 Box b = new Box ();
19 fixed (Obsolete* p = &b.o)