[metadata] Fix leaks when handling a few attributes (#16675)
[mono-project.git] / mcs / tests / test-936-lib.il
blob3f84f100e27abbbb0c42f012a060de715c045b1b
1 .assembly extern mscorlib
5 .assembly 'test-936-lib'
9 .class public auto ansi sealed beforefieldinit TypeWithIndexer
10        extends [mscorlib]System.Object
12   .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = ( 01 00 04 49 74 65 6D 00 00 )                      // ...Item..
14   .method public hidebysig specialname rtspecialname
15           instance void  .ctor() cil managed
16   {
17     IL_0000:  ldarg.0
18     IL_0001:  call       instance void [mscorlib]System.Object::.ctor()
19     IL_0006:  ret
20   }
22   .field private uint8[] a
23   .field private int32 b
24   .method public hidebysig specialname instance uint8 
25           get_B(int32 index) cil managed
26   {
27     IL_0000:  ldc.i4.0
28     IL_0001:  conv.u1
29     IL_0002:  ret
30   }
32   .method public hidebysig specialname 
33           instance void  set_O(int32 index,
34                            uint8 A_1) cil managed
35   {
36     IL_0000:  ret
37   }
39   .property instance uint8 Item(int32)
40   {
41     .get instance uint8 TypeWithIndexer::get_B(int32)
42     .set instance void TypeWithIndexer::set_O(int32,
43                                           uint8)
44   }