2009-09-01 Rodrigo Kumpera <rkumpera@novell.com>
[mono.git] / mono / tests / metadata-verifier / assembly-with-custommod.il
1 .assembly extern mscorlib
2 {
3   .ver 2:0:0:0
4   .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )
5 }
6 .assembly 'simple_assembly'
7 {
8   .hash algorithm 0x00008004
9   .ver  0:0:0:0
10 }
11
12 .module simple_assembly.exe
13
14 .class private auto ansi beforefieldinit Program extends [mscorlib]System.Object
15 {
16         .method public static 
17                 void modreq ([mscorlib]System.Runtime.CompilerServices.IsVolatile)
18                 ModRecOnRet () cil managed
19         {
20                 ret
21         } 
22         
23         .method public static
24                 int32 modopt ([mscorlib]System.Runtime.CompilerServices.IsVolatile)
25                 ModOptOnRet () cil managed
26         {
27                 .maxstack 8
28                 ldc.i4.1
29                 ret
30         } 
31         
32         .method public static
33                 void modreq ([mscorlib]System.Runtime.CompilerServices.IsVolatile)
34                          modopt ([mscorlib]System.Runtime.CompilerServices.IsVolatile)
35                          modreq ([mscorlib]System.Runtime.CompilerServices.IsVolatile)
36                          modreq ([mscorlib]System.Runtime.CompilerServices.IsVolatile)
37                 MultipleModsOnRet () cil managed
38         {
39                 ret
40         }
41
42         .method public static typedref StrangeMethod () cil managed
43         {
44                 .locals init (typedref V_0)
45
46                 ldloca 0
47                 initobj typedref
48                 ldloc.0
49                 ret
50         }
51
52         .method public static int32& ByRefMethod () cil managed
53         {
54                 .locals init (int32 V_0)
55
56                 ldloca 0
57                 ret
58         }
59
60         .method public static int32 SimpleMethod (int32 foo) cil managed
61         {
62                 ldc.i4.0
63                 ret
64         }
65
66         .method public static void MethodWithCalli () cil managed
67         {
68                 .locals init (native int V_0)
69
70                 ldftn int32 class Program::SimpleMethod ()
71                 stloc.0
72                 ldloc.0
73                 calli unmanaged cdecl int32 (int32) 
74                 pop
75                 ret
76         }
77
78         .method public static void Main () cil managed 
79         {
80                 .entrypoint
81                 .maxstack 8
82                 ret 
83         }
84
85 }
86
87