"disable_omit_fp" can now be included in MONO_DEBUG
[mono-project.git] / mcs / tests / test-366.cs
blob56ca7a85fafa57874e44867b82cdfbc9f147b5a5
1 //
2 // Check that the empty field we produce on empty structs with LayoutKind.Explicit
3 // has a FieldOffset of zero, or the .NET runtime complains
4 //
5 using System;
6 using System.Reflection;
7 using System.Runtime.InteropServices;
9 [StructLayout(LayoutKind.Explicit)]
10 struct foo2 {
13 class C
15 public static int Main ()
17 foo2 f = new foo2 ();
19 // On .NET if we got this far, we run
21 Console.WriteLine ("PASS: Test passes on Mono");
22 return 0;