Flush
authorMiguel de Icaza <miguel@gnome.org>
Sun, 30 Dec 2001 16:31:13 +0000 (16:31 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Sun, 30 Dec 2001 16:31:13 +0000 (16:31 -0000)
svn path=/trunk/mcs/; revision=1760

mcs/errors/bug10.cs
mcs/errors/bug11.cs
mcs/errors/bug14.cs
mcs/errors/bug3.cs
mcs/errors/bug5.cs

index f2b57032d982618808e7f307508bf229813714cf..5b2ff627ffa50b37e86e9b5959d90c27f8193189 100644 (file)
@@ -1,3 +1,6 @@
+//
+// fixed
+//
 using System;
 
 public class Blah {
index 1881eca681d4528db90101100f255de4199d8b16..b48bc1893f7d6a1b4871bf791bceae2659ff16d9 100755 (executable)
@@ -1,3 +1,6 @@
+//
+// fixed
+//
 class Location {
        static public int Null {
                get {
index b636c365fb50824cbc523992d40151ad301c56e2..292bae8f98f20baad2ce013c6293f17411a2bcb9 100755 (executable)
@@ -1,3 +1,6 @@
+//
+// fixed
+//
 using System;
 
 class X {
index 711b79c4b2e55b9bfbe18b632a5118c7f3667cc8..af24ecc011b2d11a4b827d73096cc0e8168e606f 100755 (executable)
@@ -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);
+               
        }
 }
        
index df43ef31662f30b7cbf4cb555d0fb053eaefec2a..03fce1597500f035a007dda377d538470a27ee9f 100755 (executable)
@@ -1,3 +1,6 @@
+//
+// fixed
+//
 interface I {
        void a ();
 }