2009-04-28 Rodrigo Kumpera <rkumpera@novell.com>
authorRodrigo Kumpera <kumpera@gmail.com>
Wed, 29 Apr 2009 02:01:18 +0000 (02:01 -0000)
committerRodrigo Kumpera <kumpera@gmail.com>
Wed, 29 Apr 2009 02:01:18 +0000 (02:01 -0000)
* assembly-with-complex-type.cs: Add more types and methods to be used generating tests.

* cli-tables-tests.md: Tests for interfaceimpl.

svn path=/trunk/mono/; revision=132932

mono/tests/metadata-verifier/Changelog
mono/tests/metadata-verifier/assembly-with-complex-type.cs
mono/tests/metadata-verifier/cli-tables-tests.md

index 5a1b5382c261def857e07836a6e904571503f465..989c7c98e9ec57dce23223c3a49b7ff858852d08 100644 (file)
@@ -1,3 +1,9 @@
+2009-04-28 Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * assembly-with-complex-type.cs: Add more types and methods to be used generating tests.
+
+       * cli-tables-tests.md: Tests for interfaceimpl.
+
 2009-04-24 Rodrigo Kumpera  <rkumpera@novell.com>
 
        * assembly-with-params.cs: New test file with all sort of param kinds.
index 53d0ac506c77f5144fd46e8cdf4781f3cfdf5c6c..929c8119d9b28f1a4f7504759f1661547fccd6eb 100644 (file)
@@ -39,3 +39,8 @@ public enum Foo
 {
        A,B,C
 }
+
+public class Bla : Iface
+{
+       public void Foo () {}
+}
\ No newline at end of file
index 5188393b6d3af1c0cc739fd4c1d6f435356907b0..aed809eac50ae05b5eea1eee4de7e353b860d891 100644 (file)
@@ -501,3 +501,29 @@ param-table {
        valid offset table-row ( 8 1 ) + 4 set-ushort 0
 }
 
+interfaceimpl-table {
+       assembly assembly-with-complex-type.exe
+
+       #class cannot be null (2)
+       #LAMEIMPL MS allows a null class
+       valid offset table-row ( 9 0 ) set-ushort 0
+
+       #class must be a valid row (3.a)
+       invalid offset table-row ( 9 0 ) set-ushort 0x9999
+
+       #interface must be a valid token (3.b)
+       #null
+       invalid offset table-row ( 9 0 ) + 2 set-ushort 0
+       #invalid table bit 0x3
+       invalid offset table-row ( 9 0 ) + 2 set-ushort 0x7
+       #invalid token typedef
+       invalid offset table-row ( 9 0 ) + 2 set-ushort 0x8800
+       #invalid token typeref
+       invalid offset table-row ( 9 0 ) + 2 set-ushort 0x8801
+       #invalid token typespec
+       invalid offset table-row ( 9 0 ) + 2 set-ushort 0x8802
+
+       #TODO verify if the target is an interface (3.c)
+
+}
+