[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git] / mcs / errors / cs0637-2.cs
blob6415d0b01837b8cefb65a5d70feaf175bda1da52
1 // CS0637: The FieldOffset attribute is not allowed on static or const fields
2 // Line: 10
4 using System;
5 using System.Runtime.InteropServices;
7 [StructLayout(LayoutKind.Explicit)]
8 struct GValue {
9 [FieldOffset (4)]
10 public const int value = 3;