2 // test-181.cs: Test whenever mcs correctly handles the MethodImplAttributes
7 using System.Reflection;
8 using System.Runtime.CompilerServices;
12 [MethodImplAttribute(MethodImplOptions.Synchronized)]
17 [MethodImplAttribute((short)MethodImplOptions.Synchronized)]
22 [MethodImplAttribute((byte)32)]
27 [MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization)]
32 public static int Main ()
34 MethodImplAttributes iflags;
35 iflags = typeof (Test).GetMethod ("test").GetMethodImplementationFlags ();
36 if ((iflags & MethodImplAttributes.Synchronized) == 0)
39 iflags = typeof (Test).GetMethod ("test2").GetMethodImplementationFlags ();
40 if ((iflags & MethodImplAttributes.Synchronized) == 0)
43 iflags = typeof (Test).GetMethod ("test3").GetMethodImplementationFlags ();
44 if ((iflags & MethodImplAttributes.Synchronized) == 0)
47 iflags = typeof (Test).GetMethod ("test3").GetMethodImplementationFlags ();
48 if ((iflags & MethodImplAttributes.Synchronized) == 0)