2010-05-25 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / test-366.cs
blobf3380e9230b7b9621aadbf57d28b5bed3af2cfbf
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 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;