[System] Tweak socket test
[mono-project.git] / mono / tests / resolve_field_bug.2.il
blobf6d340243ab0a70d9ae7831ea25f358b6cf03a42
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_field_bug.exe
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                 ldfld int32 [mscorlib]System.String::FieldThatDontExist
29                 pop
30                 ret 
31         }
33         .method public static  hidebysig default int32 Main ()  cil managed 
34         {
35                 .entrypoint
36                 .maxstack 8
37                 .locals init (
38                         class [mscorlib]System.Reflection.Assembly      V_0,
39                         class [mscorlib]System.Reflection.Module        V_1,
40                         int32                                           V_2)
41                 .try {
42                         call class [mscorlib]System.Reflection.Assembly class [mscorlib]System.Reflection.Assembly::GetExecutingAssembly()
43                         stloc.0 
44                         ldloc.0 
45                         callvirt instance class [mscorlib]System.Reflection.Module[] class [mscorlib]System.Reflection.Assembly::GetLoadedModules()
46                         ldc.i4.0 
47                         ldelem.ref 
48                         stloc.1 
49                         ldstr "field {0}"
50                         ldloc.1 
51                         ldc.i4 0xA000001        /* Has to match FieldThatDontExist TOKEN */
52                         callvirt instance class [mscorlib]System.Reflection.FieldInfo class [mscorlib]System.Reflection.Module::ResolveField(int32)
53                         call void class [mscorlib]System.Console::WriteLine(string, object)
54                         ldc.i4.1
55                         stloc.2
56                         leave END
57                 } catch [mscorlib]System.MissingFieldException {
58                         ldc.i4.0
59                         stloc.2
60                         leave END
61                 }
62 END:
63                 ldloc.2
64                 ret
65         }