Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / generic-array-exc.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-array-exc.2'
7 {
8   .hash algorithm 0x00008004
9   .ver  0:0:0:0
10 }
11 .module 'generic-array-exc.2.exe' // GUID = {770295FB-70A6-4755-9969-EFE664D15786}
12
13
14   .class public auto ansi beforefieldinit ClassA
15         extends [mscorlib]System.Object
16   {
17
18     // method line 1
19     .method public hidebysig  specialname  rtspecialname 
20            instance default void .ctor ()  cil managed 
21     {
22         // Method begins at RVA 0x20ec
23         // Code size 7 (0x7)
24         .maxstack 8
25         IL_0000:  ldarg.0 
26         IL_0001:  call instance void object::.ctor()
27         IL_0006:  ret 
28     } // end of method ClassA::.ctor
29
30   } // end of class ClassA
31
32   .class public auto ansi beforefieldinit GenExc`1<T>
33         extends [mscorlib]System.Exception
34   {
35
36     // method line 2
37     .method public hidebysig  specialname  rtspecialname 
38            instance default void .ctor ()  cil managed 
39     {
40         // Method begins at RVA 0x20f4
41         // Code size 7 (0x7)
42         .maxstack 8
43         IL_0000:  ldarg.0 
44         IL_0001:  call instance void class [mscorlib]System.Exception::.ctor()
45         IL_0006:  ret 
46     } // end of method GenExc`1::.ctor
47
48   } // end of class GenExc`1
49
50   .class public auto ansi beforefieldinit NonGen
51         extends [mscorlib]System.Object
52   {
53
54     // method line 3
55     .method public hidebysig  specialname  rtspecialname 
56            instance default void .ctor ()  cil managed 
57     {
58         // Method begins at RVA 0x20fc
59         // Code size 7 (0x7)
60         .maxstack 8
61         IL_0000:  ldarg.0 
62         IL_0001:  call instance void object::.ctor()
63         IL_0006:  ret 
64     } // end of method NonGen::.ctor
65
66     // method line 4
67     .method public static  hidebysig 
68            default void doThrow ()  cil managed 
69     {
70         // Method begins at RVA 0x2104
71         // Code size 6 (0x6)
72         .maxstack 8
73         IL_0000:  ldc.i4.3 
74         IL_0001:  newarr ClassA
75         IL_0005:  throw 
76     } // end of method NonGen::doThrow
77
78     // method line 5
79     .method public static  hidebysig 
80            default object newArr ()  cil managed 
81     {
82         // Method begins at RVA 0x210c
83         // Code size 7 (0x7)
84         .maxstack 8
85         IL_0000:  ldc.i4.3 
86         IL_0001:  newarr ClassA
87         IL_0006:  ret 
88     } // end of method NonGen::newArr
89
90   } // end of class NonGen
91
92   .class public auto ansi beforefieldinit Gen`1<T>
93         extends [mscorlib]System.Object
94   {
95
96     // method line 6
97     .method public hidebysig  specialname  rtspecialname 
98            instance default void .ctor ()  cil managed 
99     {
100         // Method begins at RVA 0x2114
101         // Code size 7 (0x7)
102         .maxstack 8
103         IL_0000:  ldarg.0 
104         IL_0001:  call instance void object::.ctor()
105         IL_0006:  ret 
106     } // end of method Gen`1::.ctor
107
108     // method line 7
109     .method public hidebysig 
110            instance default void except ()  cil managed 
111     {
112         // Method begins at RVA 0x211c
113         // Code size 17 (0x11)
114         .maxstack 1
115         .try { // 0
116           IL_0000:  call void class NonGen::doThrow()
117           IL_0005:  leave IL_0010
118
119         } // end .try 0
120         catch !0[] { // 0
121           IL_000a:  pop 
122           IL_000b:  leave IL_0010
123
124         } // end handler 0
125         IL_0010:  ret 
126     } // end of method Gen`1::except
127
128   } // end of class Gen`1
129
130   .class public auto ansi beforefieldinit main
131         extends [mscorlib]System.Object
132   {
133
134     // method line 8
135     .method public hidebysig  specialname  rtspecialname 
136            instance default void .ctor ()  cil managed 
137     {
138         // Method begins at RVA 0x2158
139         // Code size 7 (0x7)
140         .maxstack 8
141         IL_0000:  ldarg.0 
142         IL_0001:  call instance void object::.ctor()
143         IL_0006:  ret 
144     } // end of method main::.ctor
145
146     // method line 9
147     .method public static  hidebysig 
148            default int32 Main ()  cil managed 
149     {
150         // Method begins at RVA 0x2160
151         .entrypoint
152         // Code size 44 (0x2c)
153         .maxstack 4
154         .locals init (
155                 class Gen`1<class ClassA>       V_0,
156                 int32   V_1)
157         IL_0000:  newobj instance void class Gen`1<class ClassA>::.ctor()
158         IL_0005:  stloc.0 
159         .try { // 0
160           IL_0006:  ldloc.0 
161           IL_0007:  callvirt instance void class Gen`1<class ClassA>::except()
162           IL_000c:  leave IL_0028
163
164         } // end .try 0
165         catch class ClassA[] { // 0
166           IL_0011:  pop 
167           IL_0012:  ldstr "exception not caught"
168           IL_0017:  call void class [mscorlib]System.Console::WriteLine(string)
169           IL_001c:  ldc.i4.1 
170           IL_001d:  stloc.1 
171           IL_001e:  leave IL_002a
172
173           IL_0023:  leave IL_0028
174
175         } // end handler 0
176         IL_0028:  ldc.i4.0 
177         IL_0029:  ret 
178         IL_002a:  ldloc.1 
179         IL_002b:  ret 
180     } // end of method main::Main
181
182   } // end of class main
183