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