Merge pull request #5082 from kumpera/fix-ro-fs-file-delete
[mono.git] / mono / tests / resolve_type_bug.2.il
1 .assembly extern mscorlib
2 {
3   .ver 2:0:0:0
4   .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
5 }
6 .assembly extern public_field
7 {
8   .ver 0:0:0:0
9 }
10 .assembly 'loader'
11 {
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.
15
16   .hash algorithm 0x00008004
17   .ver  0:0:0:0
18 }
19 .module resolve_field_bug.exe
20
21
22 .class public auto ansi beforefieldinit Driver extends [mscorlib]System.Object
23 {
24         .method public static  hidebysig default void MemberRefToken ()  cil managed 
25         {
26                 .maxstack 2
27                 .locals init ()
28                 ldtoken  [mscorlib]System.TypeThatDontExist
29                 pop
30                 ret 
31         }
32
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 0x1000002
52                         callvirt instance class [mscorlib]System.Type class [mscorlib]System.Reflection.Module::ResolveType(int32)
53                         call void class [mscorlib]System.Console::WriteLine(string, object)
54                         leave END
55                 } catch [mscorlib]System.TypeLoadException {
56                         ldc.i4.0
57                         stloc.2
58                         leave END
59                 }
60 END:
61                 ldloc.2
62                 ret 
63         }
64 }
65