2010-04-07 Rodrigo Kumpera <rkumpera@novell.com>
[mono-project.git] / mono / tests / resolve_method_bug.2.il
blob816de3e988ba63107c9c88abb870b8c51fc31743
1 .assembly extern mscorlib
3   .ver 2:0:0:0
4   .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
6 .assembly extern public_field
8   .ver 0:0:0:0
10 .assembly 'loader'
12   .custom instance void class [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::.ctor() =  (
13                 01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78   // ....T..WrapNonEx
14                 63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01       ) // ceptionThrows.
16   .hash algorithm 0x00008004
17   .ver  0:0:0:0
19 .module resolve_method_bug.exe // GUID = {A8CE5C44-74A0-45D5-87F2-DB88A85F99A1}
22 .class public auto ansi beforefieldinit Driver extends [mscorlib]System.Object
24         .method public static  hidebysig default void MemberRefToken ()  cil managed 
25         {
26                 .maxstack 2
27                 .locals init ()
28                 call void class [mscorlib]System.String::MethodThatDontExist()
29                 ret 
30         }
32         .method public static  hidebysig default int32 Main ()  cil managed 
33         {
34                 .entrypoint
35                 .maxstack 8
36                 .locals init (
37                         class [mscorlib]System.Reflection.Assembly      V_0,
38                         class [mscorlib]System.Reflection.Module        V_1,
39                         int32                                           V_2)
40                 .try {
41                         call class [mscorlib]System.Reflection.Assembly class [mscorlib]System.Reflection.Assembly::GetExecutingAssembly()
42                         stloc.0 
43                         ldloc.0 
44                         callvirt instance class [mscorlib]System.Reflection.Module[] class [mscorlib]System.Reflection.Assembly::GetLoadedModules()
45                         ldc.i4.0 
46                         ldelem.ref 
47                         stloc.1 
48                         ldstr "field {0}"
49                         ldloc.1 
50                         ldc.i4 0xA000001
51                         callvirt instance class [mscorlib]System.Reflection.MethodBase class [mscorlib]System.Reflection.Module::ResolveMethod(int32)
52                         call void class [mscorlib]System.Console::WriteLine(string, object)
53                         leave END
54                 } catch [mscorlib]System.MissingMethodException {
55                         ldc.i4.0
56                         stloc.2
57                         leave END
58                 }
59 END:
60                 ldloc.2
61                 ret
62         }