[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / errors / cs0625.cs
blobccfc56fe596c1c32dc5cf5a6a3e0ff722e8aafcd
1 // CS0625: `CS0625.GValue.name': Instance field types marked with StructLayout(LayoutKind.Explicit) must have a FieldOffset attribute
2 // Line: 11
4 using System;
5 using System.Runtime.InteropServices;
7 namespace CS0625 {
8 [StructLayout(LayoutKind.Explicit)]
9 struct GValue {
10 public string name;
11 [ FieldOffset (4) ] public int value;
14 class Tests {
15 public static void Main () {