[CI] ignore appdomain-unload-asmload.exe on interp and full-aot
[mono.git] / mono / tests / bug-633291.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 'bug'
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 bug.exe // GUID = {7CDDF4B6-7581-4902-9709-6155199DC325}
16
17
18 .class private auto ansi beforefieldinit Program extends [mscorlib]System.Object
19 {
20         .method public static hidebysig default void Main ()  cil managed 
21     {
22         .entrypoint
23         .maxstack 2
24         .locals init ( class [mscorlib]System.Exception V_0)
25
26         nop
27         nop
28
29 TRY_START:
30                 nop
31                 nop
32
33                 ldloc.0
34                 ldnull
35                 ceq
36                 brfalse MID
37
38                 leave END
39                 br MID2
40                 nop
41 MID:
42                 nop
43                 nop
44 MID2:
45
46                 ldstr "a"
47                 call void class [mscorlib]System.Console::WriteLine(string)
48                 leave END
49                 leave END
50 TRY_END:
51                 nop //This causes a crash since this BB will be unlinked and lack a native_offset
52
53 CATCH_START:
54                 isinst     [mscorlib]System.FormatException
55                 stloc.0 
56                 ldstr "b"
57                 call void class [mscorlib]System.Console::WriteLine(string)
58                 leave END
59                 nop
60 END:
61                 .try TRY_START to TRY_END catch [mscorlib]System.Exception handler CATCH_START to END
62                 ret 
63     }
64 }
65