Merge branch 'master' of https://github.com/mono/mono into issue4328
[mono.git] / mcs / tests / gtest-fixedbuffer-09.cs
index d100ceaec953cbee8ca7dac534a00e7035611664..146157644251665e20dde610cfb2cb5e7d397fe8 100644 (file)
@@ -18,6 +18,13 @@ class Test
                if (fbas.Length != 32)
                        return 1;
 
+               var fixed_type = typeof (Foo).GetNestedTypes ()[0];
+               if (fixed_type.StructLayoutAttribute.Pack != 8)
+                       return 2;
+
+               if (fixed_type.StructLayoutAttribute.Size != 256)
+                       return 3;
+
                return 0;
        }
 }