Merge pull request #5382 from kumpera/pedump_fix
[mono.git] / mono / tests / marshal7.cs
index 02cfbbd40a6cacef016398732a3dc4323c730413..640f4a04d7822e98699f3a79b4b144833f1bed78 100644 (file)
@@ -218,9 +218,9 @@ public class Test
                        if (Marshal.SizeOf (typeof (TestStruct10)) != 12)
                                return 16;
                } else {
-                       if (Marshal.SizeOf (typeof (TestStruct8)) != 16)
+                       if (Marshal.SizeOf (typeof (TestStruct8)) != 16 && Marshal.SizeOf (typeof (TestStruct8)) != 12)
                                return 14;
-                       if (Marshal.SizeOf (typeof (TestStruct10)) != 16)
+                       if (Marshal.SizeOf (typeof (TestStruct10)) != 16 && Marshal.SizeOf (typeof (TestStruct10)) != 12)
                                return 16;
                }
                if (Marshal.SizeOf (typeof (TestStruct9)) != 12)