Merge pull request #5390 from kumpera/fix_58637
[mono.git] / mono / tests / find-method.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 'find-method'
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 'find-method.exe' // GUID = {42B655E5-110B-419B-8B7B-B523C11EDAB3}
16
17
18   .class private auto ansi beforefieldinit X`2<T,U>
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 X`2::instance default void .ctor () 
33
34     // method line 2
35     .method public virtual  hidebysig  newslot 
36            instance default int32 f (!T t, !U u)  cil managed 
37     {
38         // Method begins at RVA 0x20f4
39         // Code size 2 (0x2)
40         .maxstack 8
41         IL_0000:  ldc.i4.1 
42         IL_0001:  ret 
43     } // end of method X`2::instance default int32 f (!T t, !U u) 
44
45     // method line 3
46     .method public hidebysig 
47            instance default int32 f (int32 i, int64 l)  cil managed 
48     {
49         // Method begins at RVA 0x20f8
50         // Code size 2 (0x2)
51         .maxstack 8
52         IL_0000:  ldc.i4.2 
53         IL_0001:  ret 
54     } // end of method X`2::instance default int32 f (int32 i, int64 l) 
55
56   } // end of class X`2
57
58   .class private auto ansi beforefieldinit Y`1<V>
59         extends class X`2<int32, !0>
60   {
61
62     // method line 4
63     .method public hidebysig  specialname  rtspecialname 
64            instance default void .ctor ()  cil managed 
65     {
66         // Method begins at RVA 0x20fc
67         // Code size 7 (0x7)
68         .maxstack 8
69         IL_0000:  ldarg.0 
70         IL_0001:  call instance void class X`2<int32, !V>::.ctor()
71         IL_0006:  ret 
72     } // end of method Y`1::instance default void .ctor () 
73   } // end of class Y`1
74
75   .class private auto ansi beforefieldinit m
76         extends [mscorlib]System.Object
77   {
78
79     // method line 6
80     .method public hidebysig  specialname  rtspecialname 
81            instance default void .ctor ()  cil managed 
82     {
83         // Method begins at RVA 0x2108
84         // Code size 7 (0x7)
85         .maxstack 8
86         IL_0000:  ldarg.0 
87         IL_0001:  call instance void object::.ctor()
88         IL_0006:  ret 
89     } // end of method m::instance default void .ctor () 
90
91     // method line 7
92     .method private static  hidebysig 
93            default void Main ()  cil managed 
94     {
95         // Method begins at RVA 0x2110
96         .entrypoint
97         // Code size 27 (0x1b)
98         .maxstack 4
99         .locals init (
100                 class Y`1<int32>        V_0)
101         IL_0000:  newobj instance void class Y`1<int32>::.ctor()
102         IL_0005:  stloc.0 
103         IL_0006:  ldloc.0 
104         IL_0007:  ldc.i4.0 
105         IL_0008:  ldc.i4.1 
106         IL_0009:  callvirt instance int32 class Y`1<int32>::f(int32, !0)
107         IL_000e:  ldc.i4.1 
108         IL_000f:  beq IL_001a
109
110         IL_0014:  newobj instance void class [mscorlib]System.Exception::.ctor()
111         IL_0019:  throw 
112         IL_001a:  ret 
113     } // end of method m::default void Main () 
114
115   } // end of class m
116