diff options
author | Raja R Harinath <harinath@hurrynot.org> | 2004-05-07 14:08:33 +0400 |
---|---|---|
committer | Raja R Harinath <harinath@hurrynot.org> | 2004-05-07 14:08:33 +0400 |
commit | 56974f2ad0da505efcc5657d49508344bf84bd6a (patch) | |
tree | 1ad57df0f2844cc9b3bdf896cb89e04532715ecf /mcs/errors/cs0636.cs | |
parent | 7d07cb3c6c1305f56b801c3c0ee3f74e1bee356f (diff) |
New tests.
svn path=/trunk/mcs/; revision=26892
Diffstat (limited to 'mcs/errors/cs0636.cs')
-rw-r--r-- | mcs/errors/cs0636.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mcs/errors/cs0636.cs b/mcs/errors/cs0636.cs new file mode 100644 index 00000000000..1a0ed8fb2e7 --- /dev/null +++ b/mcs/errors/cs0636.cs @@ -0,0 +1,16 @@ +// CS0636: The FieldOffset attribute can only be placed on members of types marked with the StructLayout(LayoutKind.Explicit) + +using System; +using System.Runtime.InteropServices; + +namespace cs0636 { + struct GValue { + public string name; + [ FieldOffset (4) ] public int value; + } + + class Tests { + public static void Main () { + } + } +} |