Files
mono/mcs/errors/cs0625.cs
T
Marek Safar 1fb4eab34b new tests + error syntax fixes
svn path=/trunk/mcs/; revision=48785
2005-08-24 15:23:34 +00:00

19 lines
398 B
C#

// cs0625.cs: `cs0625.GValue.name': Instance field types marked with StructLayout(LayoutKind.Explicit) must have a FieldOffset attribute
// Line: 11
using System;
using System.Runtime.InteropServices;
namespace cs0625 {
[StructLayout(LayoutKind.Explicit)]
struct GValue {
public string name;
[ FieldOffset (4) ] public int value;
}
class Tests {
public static void Main () {
}
}
}