Must use an IL version of the test since the underlying bug will be fixed on mcs.
[mono.git] / mono / tests / verifier / unverifiable_cmmp_local_store.il
1 .assembly extern mscorlib
2 {
3   .ver 4:0:0:0
4   .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
5 }
6 .assembly 'unverifiable_cmmp_local_store'
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 unverifiable_cmmp_local_store.exe // GUID = {F3A9C2F4-CD8F-43B0-BA4A-C29C71B07966}
16
17
18   .class private auto ansi beforefieldinit Program
19         extends [mscorlib]System.Object
20   {
21
22     // method line 1
23     .method public hidebysig specialname rtspecialname 
24            instance default void '.ctor' ()  cil managed 
25     {
26         // Method begins at RVA 0x2050
27         // Code size 7 (0x7)
28         .maxstack 8
29         IL_0000:  ldarg.0 
30         IL_0001:  call instance void object::'.ctor'()
31         IL_0006:  ret 
32     } // end of method Program::.ctor
33
34     // method line 2
35     .method private static hidebysig 
36            default void Test<T> (!!T[] t)  cil managed 
37     {
38         // Method begins at RVA 0x2058
39         // Code size 24 (0x18)
40         .maxstack 2
41         .locals init (
42                 !!T&    V_0)
43         IL_0000:  ldarg.0 
44         IL_0001:  ldc.i4.0 
45         IL_0002:  readonly. 
46         IL_0004:  ldelema !!0
47         IL_0009:  stloc.0 
48         IL_000a:  ldarg.0 
49         IL_000b:  ldc.i4.0 
50         IL_000c:  ldelem !!0
51         IL_0011:  ldloc.0 
52         IL_0012:  call void class Program::Foo<!!0> (!!0, [out] !!0&)
53         IL_0017:  ret 
54     } // end of method Program::Test
55
56     // method line 3
57     .method private static hidebysig 
58            default void Foo<T> (!!T a, !!T& b)  cil managed 
59     {
60         // Method begins at RVA 0x207c
61         // Code size 1 (0x1)
62         .maxstack 8
63         IL_0000:  ret 
64     } // end of method Program::Foo
65
66     // method line 4
67     .method public static hidebysig 
68            default int32 Main ()  cil managed 
69     {
70         // Method begins at RVA 0x207e
71         .entrypoint
72         // Code size 17 (0x11)
73         .maxstack 8
74         IL_0000:  ldc.i4.1 
75         IL_0001:  newarr [mscorlib]System.Int32
76         IL_0006:  dup 
77         IL_0007:  ldc.i4.0 
78         IL_0008:  ldc.i4.3 
79         IL_0009:  stelem.i4 
80         IL_000a:  call void class Program::Test<int32> (!!0[])
81         IL_000f:  ldc.i4.0 
82         IL_0010:  ret 
83     } // end of method Program::Main
84
85   } // end of class Program
86