grammar updates
[mono.git] / mono / tests / marshal6.cs
index 3e4a997d2cbf4d9e2d8905f9b2a1775c80b54c55..fde486cd4afcf61b891dbe56762b339e06b9aec2 100644 (file)
@@ -17,7 +17,16 @@ public class X {
                IntPtr p = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(Dummy)));
                Marshal.StructureToPtr(dummy, p, false);
                
-               if(Marshal.ReadInt32(p, 0) != 0x64636261) {
+               if(Marshal.ReadByte(p, 0) != 0x61) {
+                       return 1;
+               }
+               if(Marshal.ReadByte(p, 1) != 0x62) {
+                       return 1;
+               }
+               if(Marshal.ReadByte(p, 2) != 0x63) {
+                       return 1;
+               }
+               if(Marshal.ReadByte(p, 3) != 0x64) {
                        return 1;
                }
                return 0;