2009-09-01 Rodrigo Kumpera <rkumpera@novell.com>
[mono.git] / mono / tests / metadata-verifier / assembly-with-custommod.il
index f60629c4292d0b474f6e7a5145648d8ad6f4bc8e..330d9716c934f99c98922860c68c9ed13e009fb7 100644 (file)
@@ -41,7 +41,7 @@
 
        .method public static typedref StrangeMethod () cil managed
        {
-               .locals (typedref V_0)
+               .locals init (typedref V_0)
 
                ldloca 0
                initobj typedref
                ret
        }
 
+       .method public static int32& ByRefMethod () cil managed
+       {
+               .locals init (int32 V_0)
+
+               ldloca 0
+               ret
+       }
+
+       .method public static int32 SimpleMethod (int32 foo) cil managed
+       {
+               ldc.i4.0
+               ret
+       }
+
+       .method public static void MethodWithCalli () cil managed
+       {
+               .locals init (native int V_0)
+
+               ldftn int32 class Program::SimpleMethod ()
+               stloc.0
+               ldloc.0
+               calli unmanaged cdecl int32 (int32) 
+               pop
+               ret
+       }
+
        .method public static void Main () cil managed 
        {
                .entrypoint