From f14f021c03da73ca5037e41b03c9726b48c7e36e Mon Sep 17 00:00:00 2001 From: Rodrigo Kumpera Date: Mon, 11 Oct 2010 16:19:04 -0300 Subject: [PATCH] Add regression test for #562771 --- mono/tests/verifier/badmd_ginst_using_gtd.il | 82 ++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 mono/tests/verifier/badmd_ginst_using_gtd.il diff --git a/mono/tests/verifier/badmd_ginst_using_gtd.il b/mono/tests/verifier/badmd_ginst_using_gtd.il new file mode 100644 index 00000000000..8fef29c14c0 --- /dev/null +++ b/mono/tests/verifier/badmd_ginst_using_gtd.il @@ -0,0 +1,82 @@ +.assembly extern mscorlib +{ + .ver 2:0:0:0 + .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4.. +} +.assembly 'test' +{ + .custom instance void class [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::'.ctor'() = ( + 01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78 // ....T..WrapNonEx + 63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01 ) // ceptionThrows. + + .hash algorithm 0x00008004 + .ver 0:0:0:0 +} +.module test.exe // GUID = {33FC05B0-2828-4EC7-8041-9643DA8F4E7C} + + + .class public auto ansi beforefieldinit Foo`1 + extends [mscorlib]System.Object + { + + // method line 1 + .method public hidebysig specialname rtspecialname + instance default void '.ctor' () cil managed + { + // Method begins at RVA 0x20ec + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void object::'.ctor'() + IL_0006: ret + } // end of method Foo`1::.ctor + + } // end of class Foo`1 + + .class public auto ansi beforefieldinit Bar`1 + extends class Foo`1 + { + + // method line 2 + .method public hidebysig specialname rtspecialname + instance default void '.ctor' () cil managed + { + // Method begins at RVA 0x20f4 + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void class Foo`1::'.ctor'() + IL_0006: ret + } // end of method Bar`1::.ctor + + } // end of class Bar`1 + + .class public auto ansi beforefieldinit Bla + extends [mscorlib]System.Object + { + + // method line 3 + .method public hidebysig specialname rtspecialname + instance default void '.ctor' () cil managed + { + // Method begins at RVA 0x20fc + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void object::'.ctor'() + IL_0006: ret + } // end of method Bla::.ctor + + // method line 4 + .method public static hidebysig + default void Main () cil managed + { + // Method begins at RVA 0x2104 + .entrypoint + // Code size 1 (0x1) + .maxstack 8 + IL_0000: ret + } // end of method Bla::Main + + } // end of class Bla + -- 2.11.4.GIT