2010-05-25 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / test-181.cs
bloba2d5de1d680bf3c9ba0bc9416bec6204c8e430d9
1 //
2 // test-181.cs: Test whenever mcs correctly handles the MethodImplAttributes
3 // custom attribute.
4 //
6 using System;
7 using System.Reflection;
8 using System.Runtime.CompilerServices;
10 class Test
12 [MethodImplAttribute(MethodImplOptions.Synchronized)]
13 public void test ()
17 static public int Main ()
19 MethodImplAttributes iflags = typeof (Test).GetMethod ("test").GetMethodImplementationFlags ();
20 return ((iflags & MethodImplAttributes.Synchronized) != 0 ? 0 : 1);