Merge pull request #4381 from BrzVlad/feature-generational-hash
[mono.git] / mono / tests / verifier / valid_load_addr.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 'bla'
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 bla.exe // GUID = {8936712E-615B-4184-B427-9B50704538E2}
16
17 .method static public void ByRefParam (int32&)
18 {
19         .maxstack 8
20         .locals init (int32 &V_0)
21         ret
22 }
23
24 .method static public void Blue (int32)
25 {
26         .maxstack 8
27         .locals init (int32& V_0)
28
29         ldarga 0
30         call void ByRefParam(int32&)
31         ret
32 }
33
34
35 .method static public void ZZZ ()
36 {
37         .maxstack 8
38         .locals init (int32 V_0)
39
40         ldloc.0
41         call void Blue(int32)
42         ldloca 0
43         call void ByRefParam(int32&)
44         ret
45 }
46
47   .class public auto ansi beforefieldinit Example
48         extends [mscorlib]System.Object
49   {
50
51     // method line 1
52     .method public hidebysig  specialname  rtspecialname 
53            instance default void .ctor ()  cil managed 
54     {
55         // Method begins at RVA 0x20ec
56         // Code size 7 (0x7)
57         .maxstack 8
58         IL_0000:  ldarg.0 
59         IL_0001:  call instance void object::.ctor()
60         IL_0006:  ret 
61     } // end of method Example::.ctor
62
63     // method line 2
64     .method public static  hidebysig 
65            default int32 Main ()  cil managed 
66     {
67         .entrypoint
68                 .maxstack 2
69                 call void ZZZ ()
70                 ldc.i4.0
71                 ret 
72     }
73
74   } // end of class Example
75