[loader] Init MonoClass:sizes.element_size lazily (Fixes #43563) (#5559)
[mono.git] / mono / tests / fault-handler.il
1 .assembly Test { }
2 .assembly extern mscorlib { }
3  
4 .method public static int32 Main()
5 {
6    .entrypoint
7    .locals init (
8         int32 res
9    )
10     ldc.i4.1
11     stloc res
12    .try {
13    .try
14    {
15       newobj instance void [mscorlib]System.Exception::.ctor()
16       throw
17       leave.s exitTry
18    }
19    fault
20    {
21       ldstr "Fault handler executed"
22       call void [mscorlib]System.Console::WriteLine(string)
23       ldc.i4.0
24       stloc res
25       endfault
26    }
27    } catch [mscorlib]System.Object {
28         pop
29       leave.s exitTry
30    }
31    exitTry:
32    ldloc res
33    ret
34 }
35
36
37
38
39