[prev in list] [next in list] [prev in thread] [next in thread]
List: mono-patches
Subject: [Mono-patches] r135085 - trunk/mono/mono/tests/metadata-verifier
From: "Rodrigo Kumpera (kumpera () gmail ! com)"
Date: 2009-05-29 20:50:23
Message-ID: 20090529205023.BCF949472C () mono-cvs ! ximian ! com
[Download RAW message or body]
Author: kumpera
Date: 2009-05-29 16:50:23 -0400 (Fri, 29 May 2009)
New Revision: 135085
Modified:
trunk/mono/mono/tests/metadata-verifier/Changelog
trunk/mono/mono/tests/metadata-verifier/assembly-with-custommod.il
trunk/mono/mono/tests/metadata-verifier/cli-blob-tests.md
Log:
2009-05-29 Rodrigo Kumpera <rkumpera@novell.com>
* cli-blob-tests.md: StandAloneSig tests.
* assembly-with-custommod.il: Added a calli
Modified: trunk/mono/mono/tests/metadata-verifier/Changelog
===================================================================
--- trunk/mono/mono/tests/metadata-verifier/Changelog 2009-05-29 20:50:13 UTC (rev \
135084)
+++ trunk/mono/mono/tests/metadata-verifier/Changelog 2009-05-29 20:50:23 UTC (rev \
135085) @@ -1,3 +1,9 @@
+2009-05-29 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * cli-blob-tests.md: StandAloneSig tests.
+
+ * assembly-with-custommod.il: Added a calli
+
2009-05-28 Rodrigo Kumpera <rkumpera@novell.com>
* cli-blob-tests.md: Methodref signature tests.
Modified: trunk/mono/mono/tests/metadata-verifier/assembly-with-custommod.il
===================================================================
--- trunk/mono/mono/tests/metadata-verifier/assembly-with-custommod.il 2009-05-29 \
20:50:13 UTC (rev 135084)
+++ trunk/mono/mono/tests/metadata-verifier/assembly-with-custommod.il 2009-05-29 \
20:50:23 UTC (rev 135085) @@ -41,7 +41,7 @@
.method public static typedref StrangeMethod () cil managed
{
- .locals (typedref V_0)
+ .locals init (typedref V_0)
ldloca 0
initobj typedref
@@ -51,12 +51,30 @@
.method public static int32& ByRefMethod () cil managed
{
- .locals (int32 V_0)
+ .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
Modified: trunk/mono/mono/tests/metadata-verifier/cli-blob-tests.md
===================================================================
--- trunk/mono/mono/tests/metadata-verifier/cli-blob-tests.md 2009-05-29 20:50:13 UTC \
(rev 135084)
+++ trunk/mono/mono/tests/metadata-verifier/cli-blob-tests.md 2009-05-29 20:50:23 UTC \
(rev 135085) @@ -99,6 +99,27 @@
#sentinel but not vararg
invalid offset blob.i (table-row (0xA 0) + 4) + 1 set-byte 0
+}
-
-}
\ No newline at end of file
+stand-alone-method-sig {
+ assembly assembly-with-custommod.exe
+
+ #standalone sig 0x3 points to an icall sig
+ valid offset blob.i (table-row (0x11 3)) + 1 set-byte 0x0
+ valid offset blob.i (table-row (0x11 3)) + 1 set-byte 0x1
+ valid offset blob.i (table-row (0x11 3)) + 1 set-byte 0x2
+ valid offset blob.i (table-row (0x11 3)) + 1 set-byte 0x3
+ valid offset blob.i (table-row (0x11 3)) + 1 set-byte 0x4
+ valid offset blob.i (table-row (0x11 3)) + 1 set-byte 0x5
+
+ #sig is int32 (int32)
+ #size cconv pcount(1) int32 int32 ->
+ #size cconv gcount(1) pcount(0) int32
+ #cannot have generics
+ invalid offset blob.i (table-row (0x11 3)) + 1 set-byte 0x10,
+ offset blob.i (table-row (0x11 3)) + 2 set-byte 1,
+ offset blob.i (table-row (0x11 3)) + 3 set-byte 0
+
+
+
+}
_______________________________________________
Mono-patches maillist - Mono-patches@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-patches
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic