[interp] disable assemblyresolve_event6.exe
[mono.git] / mono / tests / generic-ldtoken-field.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 'generic-ldtoken.2'
7 {
8   .custom instance void class [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::'.ctor'() =  (
9                 01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78   // ....T..WrapNonEx
10                 63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01       ) // ceptionThrows.
11
12   .hash algorithm 0x00008004
13   .ver  0:0:0:0
14 }
15 .module 'generic-ldtoken.2.exe' // GUID = {816E886F-1485-43E8-AC46-501D301BC67A}
16
17
18   .class public auto ansi beforefieldinit ClassA
19         extends [mscorlib]System.Object
20   {
21
22     // method line 1
23     .method public hidebysig  specialname  rtspecialname 
24            instance default void '.ctor' ()  cil managed 
25     {
26         // Method begins at RVA 0x20ec
27         // Code size 7 (0x7)
28         .maxstack 8
29         IL_0000:  ldarg.0 
30         IL_0001:  call instance void object::'.ctor'()
31         IL_0006:  ret 
32     } // end of method ClassA::.ctor
33
34   } // end of class ClassA
35
36   .class public auto ansi beforefieldinit Gen`1<T>
37         extends [mscorlib]System.Object
38   {
39
40     .field public static int32 myField
41
42     // method line 2
43     .method public hidebysig  specialname  rtspecialname 
44            instance default void '.ctor' ()  cil managed 
45     {
46         // Method begins at RVA 0x20f4
47         // Code size 7 (0x7)
48         .maxstack 8
49         IL_0000:  ldarg.0 
50         IL_0001:  call instance void object::'.ctor'()
51         IL_0006:  ret 
52     } // end of method Gen`1::.ctor
53
54     .method public hidebysig instance default int32 checkEqual () cil managed
55     {
56         ldtoken field int32 class Gen`1<!T>::myField
57         call [mscorlib]System.Reflection.FieldInfo [mscorlib]System.Reflection.FieldInfo::GetFieldFromHandle (valuetype [mscorlib]System.RuntimeFieldHandle)
58         ldtoken field int32 class Gen`1<class ClassA>::myField
59         call [mscorlib]System.Reflection.FieldInfo [mscorlib]System.Reflection.FieldInfo::GetFieldFromHandle (valuetype [mscorlib]System.RuntimeFieldHandle)
60         ceq
61         ret
62     }
63
64   } // end of class Gen`1
65
66   .class public auto ansi beforefieldinit main
67         extends [mscorlib]System.Object
68   {
69
70     // method line 5
71     .method public hidebysig  specialname  rtspecialname 
72            instance default void '.ctor' ()  cil managed 
73     {
74         // Method begins at RVA 0x2114
75         // Code size 7 (0x7)
76         .maxstack 8
77         IL_0000:  ldarg.0 
78         IL_0001:  call instance void object::'.ctor'()
79         IL_0006:  ret 
80     } // end of method main::.ctor
81
82     // method line 6
83     .method public static  hidebysig 
84            default int32 Main ()  cil managed 
85     {
86         // Method begins at RVA 0x211c
87         .entrypoint
88         // Code size 54 (0x36)
89         .maxstack 9
90         .locals init (
91                 class Gen`1<class ClassA>       V_0)
92                   ldc.i4.1
93         IL_0000:  newobj instance void class Gen`1<class ClassA>::'.ctor'()
94                   callvirt instance int32 class Gen`1<class ClassA>::checkEqual()
95                   sub
96         IL_0035:  ret 
97     } // end of method main::Main
98
99   } // end of class main
100