Disable none-working stack overflow implementation on Windows x64 full AOT.
[mono.git] / mcs / tests / gtest-fixedbuffer-09.cs
1 // Compiler options: -unsafe
2
3 using System;
4 using System.Runtime.CompilerServices;
5
6 unsafe struct Foo
7 {
8         public fixed long FieldName[32];
9 }
10
11 class Test
12 {
13         public static int Main ()
14         {
15                 var t = typeof (Foo);
16                 var f = t.GetField ("FieldName");
17                 var fbas = f.GetCustomAttributes (typeof (FixedBufferAttribute), true)[0] as FixedBufferAttribute;
18                 if (fbas.Length != 32)
19                         return 1;
20
21                 var fixed_type = typeof (Foo).GetNestedTypes ()[0];
22                 if (fixed_type.StructLayoutAttribute.Pack != 8)
23                         return 2;
24
25                 if (fixed_type.StructLayoutAttribute.Size != 256)
26                         return 3;
27
28                 return 0;
29         }
30 }