Update mcs/class/System.Core/System/TimeZoneInfo.cs
[mono.git] / mcs / tests / test-366.cs
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;
8
9 [StructLayout(LayoutKind.Explicit)]
10 struct foo2 {
11 }
12
13 class C
14 {
15         static int Main ()
16         {
17                 foo2 f = new foo2 ();
18
19                 // On .NET if we got this far, we run
20                 
21                 Console.WriteLine ("PASS: Test passes on Mono");
22                 return 0;
23     }
24 }
25
26