Update mcs/class/System.Core/System/TimeZoneInfo.cs
[mono.git] / mcs / tests / test-181.cs
1 //
2 // test-181.cs: Test whenever mcs correctly handles the MethodImplAttributes
3 // custom attribute.
4 //
5
6 using System;
7 using System.Reflection;
8 using System.Runtime.CompilerServices;
9
10 class Test
11 {
12         [MethodImplAttribute(MethodImplOptions.Synchronized)]
13         public void test ()
14         {
15         }
16
17         static public int Main ()
18         {
19                 MethodImplAttributes iflags = typeof (Test).GetMethod ("test").GetMethodImplementationFlags ();
20                 return ((iflags & MethodImplAttributes.Synchronized) != 0 ? 0 : 1);
21         }
22 }
23                 
24