Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / bug-82022.il
1 .assembly extern mscorlib { }
2 .assembly test
3 {
4   .hash algorithm 0x00008004
5   .ver 0:0:0:0
6 }
7
8 .class private auto ansi sealed FieldAttributes extends [mscorlib]System.Enum
9 {
10 }
11
12 .class private auto ansi beforefieldinit Program extends [mscorlib]System.Object
13 {
14         .method private hidebysig static int32 Main() cil managed
15         {
16                 .entrypoint
17                 .maxstack       2
18                 .locals init (
19                         class [mscorlib]System.Exception        V_0,
20                         int32   V_1)
21                 .try {
22                         call int32 Program::triggerError ()
23                         stloc.1
24                         leave end_block
25                 }
26                 catch [mscorlib]System.Exception { 
27                         stloc.0
28                         ldc.i4.0
29                         stloc.1
30                         leave end_block
31                 }
32 end_block:
33                 ldloc.1
34                 ret
35         }
36
37         .method static int32 triggerError () cil managed
38         {
39                 .locals init (class [mscorlib]System.Type V_0)
40                 ldtoken FieldAttributes
41                 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
42                 stloc.0
43                 ldloc.0
44                 callvirt instance string [mscorlib]System.Type::get_FullName()
45                 pop
46                 ldc.i4.1
47                 ret
48         }
49
50
51         .method public hidebysig specialname rtspecialname instance void .ctor() cil managed
52         {
53                 .maxstack       1
54                 ldarg.0
55                 call                     instance void [mscorlib]System.Object::.ctor()
56                 ret
57         }
58 }
59
60 .class private auto ansi sealed FieldAttributes extends [mscorlib]System.Enum
61 {
62 }
63