Merge pull request #4938 from kumpera/optimize_ref_queries
[mono.git] / mono / tests / method-access.il
index 98e9f7fa7ff6b0696a2724929e437928438b31ac..558fb5931e4b8fa25ceaa486bcb8da40c6ab66e6 100644 (file)
                        call void Test::call_sfoo ()
                        br fail
                } catch [mscorlib]System.MethodAccessException {
-                       pop
+                       call instance string [mscorlib]System.MethodAccessException::get_Message ()
+                       ldstr "Method `MethFail:sfoo ()' is inaccessible from method `Test:call_sfoo ()'"
+                       call instance bool [mscorlib]System.String::Equals (string)
+                       brfalse fail
                        br continue
                } catch [mscorlib]System.Exception {
                        pop