linux-packaging-mono/mono/tests/resolve_method_bug.2.il
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

65 lines
1.7 KiB
Plaintext

.assembly extern mscorlib
{
.ver 2:0:0:0
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
}
.assembly extern public_field
{
.ver 0:0:0:0
}
.assembly 'loader'
{
.custom instance void class [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::.ctor() = (
01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78 // ....T..WrapNonEx
63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01 ) // ceptionThrows.
.hash algorithm 0x00008004
.ver 0:0:0:0
}
.module resolve_method_bug.exe // GUID = {A8CE5C44-74A0-45D5-87F2-DB88A85F99A1}
.class public auto ansi beforefieldinit Driver extends [mscorlib]System.Object
{
.method public static hidebysig default void MemberRefToken () cil managed
{
.maxstack 2
.locals init ()
call void class [mscorlib]System.String::MethodThatDontExist()
ret
}
.method public static hidebysig default int32 Main () cil managed
{
.entrypoint
.maxstack 8
.locals init (
class [mscorlib]System.Reflection.Assembly V_0,
class [mscorlib]System.Reflection.Module V_1,
int32 V_2)
.try {
call class [mscorlib]System.Reflection.Assembly class [mscorlib]System.Reflection.Assembly::GetExecutingAssembly()
stloc.0
ldloc.0
callvirt instance class [mscorlib]System.Reflection.Module[] class [mscorlib]System.Reflection.Assembly::GetLoadedModules()
ldc.i4.0
ldelem.ref
stloc.1
ldstr "field {0}"
ldloc.1
ldc.i4 0xA000001
callvirt instance class [mscorlib]System.Reflection.MethodBase class [mscorlib]System.Reflection.Module::ResolveMethod(int32)
call void class [mscorlib]System.Console::WriteLine(string, object)
leave END
} catch [mscorlib]System.MissingMethodException {
ldc.i4.0
stloc.2
leave END
}
END:
ldloc.2
ret
}
}