diff options
author | Miguel de Icaza <miguel@gnome.org> | 2001-12-30 19:31:13 +0300 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2001-12-30 19:31:13 +0300 |
commit | 82fa948924c53f0727f9e7c5feb85178df57b73a (patch) | |
tree | 5bf3739ce820a8c12535a27185bbb6b4871d049d /mcs/errors/bug3.cs | |
parent | 4b318d2f7e46ad39a7c28a433cad4d0848f3589b (diff) |
Flush
svn path=/trunk/mcs/; revision=1760
Diffstat (limited to 'mcs/errors/bug3.cs')
-rwxr-xr-x | mcs/errors/bug3.cs | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/mcs/errors/bug3.cs b/mcs/errors/bug3.cs index 711b79c4b2e..af24ecc011b 100755 --- a/mcs/errors/bug3.cs +++ b/mcs/errors/bug3.cs @@ -1,16 +1,36 @@ +// +// Fixed, incorporated into test +// +using System; + using System.Runtime.InteropServices; [StructLayout (LayoutKind.Explicit)] struct A { [FieldOffset (0)] public int a; - [FieldOffset (4)] - public int b; + [FieldOffset (0)] + public byte b1; + [FieldOffset (1)] + public byte b2; + [FieldOffset (2)] + public byte b3; + [FieldOffset (3)] + public byte b4; } class X { static void Main () { + A a = new A (); + + a.a = 0x12345678; + + Console.WriteLine ("b1: " + a.b1); + Console.WriteLine ("b2: " + a.b2); + Console.WriteLine ("b3: " + a.b3); + Console.WriteLine ("b4: " + a.b4); + } } |