diff options
author | Rodrigo Kumpera <kumpera@gmail.com> | 2007-10-09 16:51:41 +0400 |
---|---|---|
committer | Rodrigo Kumpera <kumpera@gmail.com> | 2007-10-09 16:51:41 +0400 |
commit | 502e1be49fe20186d28c99c393b6d7c79c08f435 (patch) | |
tree | ba48790caa472d16ba01de9f83ecb5187e0a3307 /mcs/ilasm | |
parent | c52d5cb2afdd97732813175915f035622a7c1b9f (diff) |
2007-10-09 Rodrigo Kumpera <rkumpera@novell.com>
* test-method-pointer-in-signature.il: New. Test for overloads
that use method pointers.
svn path=/trunk/mcs/; revision=87161
Diffstat (limited to 'mcs/ilasm')
-rw-r--r-- | mcs/ilasm/tests/ChangeLog | 7 | ||||
-rw-r--r-- | mcs/ilasm/tests/test-method-pointer-in-signature.il | 43 |
2 files changed, 49 insertions, 1 deletions
diff --git a/mcs/ilasm/tests/ChangeLog b/mcs/ilasm/tests/ChangeLog index c656565ff66..eed310a4b95 100644 --- a/mcs/ilasm/tests/ChangeLog +++ b/mcs/ilasm/tests/ChangeLog @@ -1,4 +1,9 @@ -2007-06-05 Rodrigo Kumpera <kumpera@gmail.com +2007-10-09 Rodrigo Kumpera <rkumpera@novell.com> + + * test-method-pointer-in-signature.il: New. Test for overloads + that use method pointers. + +2007-06-05 Rodrigo Kumpera <kumpera@gmail.com> * generics-variance.il: New. Test for variance related generic modifiers <+T> and <-T> diff --git a/mcs/ilasm/tests/test-method-pointer-in-signature.il b/mcs/ilasm/tests/test-method-pointer-in-signature.il new file mode 100644 index 00000000000..4505892c89b --- /dev/null +++ b/mcs/ilasm/tests/test-method-pointer-in-signature.il @@ -0,0 +1,43 @@ + +// unverifiable CIL which breaks the ECMA-335 rules. +// this CIL should fail verification by a conforming CLI verifier. + +.assembly 'unverifiable_newobj_unverifiable_types_3_generated' +{ + .hash algorithm 0x00008004 + .ver 0:0:0:0 +} + +.assembly extern mscorlib +{ + .ver 1:0:5000:0 + .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4.. +} + +.class ClassA extends [mscorlib]System.Object +{ + .method public hidebysig specialname rtspecialname instance default void .ctor () cil managed + { + .maxstack 8 + ldarg.0 + call instance void object::.ctor() + ret + } + + .method public hidebysig specialname rtspecialname instance default void .ctor (method int32 *(int32) tp) cil managed + { + .maxstack 8 + ldarg.0 + call instance void object::.ctor() + ret + } + +} + + +.method public static void Main() cil managed +{ + .entrypoint + .maxstack 8 + ret +} |