[mcs] Fixes user operator extraction from shared list. Fixes #46806
[mono.git] / mcs / tests / test-181.cs
index 59182c7c65adc0d1792c87aa8d0dd17e41dcf68b..526f238285fea10be61d84ad175f8618e6633a13 100644 (file)
@@ -24,6 +24,11 @@ class Test
        {
        }
 
+       [MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization)]
+       public void test4 ()
+       {
+       }
+
        public static int Main ()
        {
                MethodImplAttributes iflags;
@@ -39,6 +44,10 @@ class Test
                if ((iflags & MethodImplAttributes.Synchronized) == 0)
                        return 3;
 
+               iflags = typeof (Test).GetMethod ("test3").GetMethodImplementationFlags ();
+               if ((iflags & MethodImplAttributes.Synchronized) == 0)
+                       return 4;
+
                return 0;
        }
 }