Merge pull request #5082 from kumpera/fix-ro-fs-file-delete
[mono.git] / mono / tests / generic-valuetype-newobj2.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-valuetype-newobj2.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-valuetype-newobj2.2.exe' // GUID = {E84A2C06-0CD3-4155-9334-02045F2698FF}
16
17
18   .class public sequential ansi sealed beforefieldinit Gen
19         extends [mscorlib]System.ValueType
20   {
21     .field  public  object arr
22
23     // method line 1
24     .method public hidebysig  specialname  rtspecialname 
25            instance default void '.ctor'<T> (int32 i)  cil managed 
26     {
27         // Method begins at RVA 0x20ec
28         // Code size 8 (0x8)
29         .maxstack 8
30         IL_0000:  ldarg.0 
31         IL_0001:  ldarg.1 
32         IL_0002:  newarr !!0
33         IL_0007:  stfld object Gen::arr
34         IL_000c:  ret 
35     } // end of method Gen::.ctor
36
37   } // end of class Gen
38
39   .class public auto ansi beforefieldinit main
40         extends [mscorlib]System.Object
41   {
42
43     // method line 3
44     .method public hidebysig  specialname  rtspecialname 
45            instance default void '.ctor' ()  cil managed 
46     {
47         // Method begins at RVA 0x2108
48         // Code size 7 (0x7)
49         .maxstack 8
50         IL_0000:  ldarg.0 
51         IL_0001:  call instance void object::'.ctor'()
52         IL_0006:  ret 
53     } // end of method main::.ctor
54
55     // method line 4
56     .method public static  hidebysig 
57            default valuetype Gen newGen ()  cil managed 
58     {
59         // Method begins at RVA 0x2110
60         // Code size 10 (0xa)
61         .maxstack 3
62         IL_0002:  ldc.i4.3 
63                   newobj instance void valuetype Gen::'.ctor'<string>(int32)
64         IL_0009:  ret 
65     } // end of method main::newGen
66
67     // method line 5
68     .method public static  hidebysig 
69            default int32 Main ()  cil managed 
70     {
71         // Method begins at RVA 0x2128
72         .entrypoint
73         // Code size 37 (0x25)
74         .maxstack 6
75         .locals init (
76                 valuetype Gen   V_0)
77         IL_0000:  call valuetype Gen class main::newGen()
78         IL_0005:  stloc.0 
79         IL_0006:  ldloca.s 0
80         IL_0008:  ldfld object Gen::arr
81         IL_000d:  callvirt instance class [mscorlib]System.Type object::GetType()
82         IL_0012:  ldtoken string[]
83         IL_0017:  call class [mscorlib]System.Type class [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
84         IL_001c:  beq IL_0023
85
86         IL_0021:  ldc.i4.1 
87         IL_0022:  ret 
88         IL_0023:  ldc.i4.0 
89         IL_0024:  ret 
90     } // end of method main::Main
91
92   } // end of class main
93