Browse files

2008-12-08 Rodrigo Kumpera <rkumpera@novell.com>

	* bug445361.il: New regression test.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=121239
  • Loading branch information...
1 parent efa6899 commit 6273173f8009a98a5c1d4c3bb5e3f9f59772dbaf @kumpera kumpera committed Dec 10, 2008
Showing with 67 additions and 1 deletion.
  1. +6 −0 mono/tests/ChangeLog
  2. +2 −1 mono/tests/Makefile.am
  3. +59 −0 mono/tests/bug445361.il
View
6 mono/tests/ChangeLog
@@ -1,5 +1,11 @@
2008-12-08 Rodrigo Kumpera <rkumpera@novell.com>
+ * bug445361.il: New regression test.
+
+ * Makefile.am: Test added.
+
+2008-12-08 Rodrigo Kumpera <rkumpera@novell.com>
+
* bug457574.il: New regression test.
* Makefile.am: Test added.
View
3 mono/tests/Makefile.am
@@ -416,7 +416,8 @@ TEST_IL_SRC= \
generic-valuetype-newobj.2.il \
generic-constrained.2.il \
bug-81466.il \
- bug457574.il
+ bug457574.il \
+ bug445361.il
# bug-318677.il
View
59 mono/tests/bug445361.il
@@ -0,0 +1,59 @@
+.assembly extern mscorlib
+{
+ .ver 2:0:0:0
+ .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )
+}
+.assembly 'repro'
+{
+ .hash algorithm 0x00008004
+ .ver 0:0:0:0
+}
+.module repro.exe
+
+.class public auto ansi beforefieldinit Foo`1<T> extends [mscorlib]System.Object
+{
+ .field private class [mscorlib]System.__Type bad_bad_field
+
+ .method public hidebysig specialname rtspecialname
+ instance default void '.ctor' () cil managed
+ {
+ .maxstack 8
+ ldarg.0
+ call instance void object::'.ctor'()
+ ret
+ }
+}
+
+.class public auto ansi beforefieldinit Driver extends [mscorlib]System.Object
+{
+ .method public static hidebysig default void faulty () cil managed
+ {
+ .maxstack 8
+ newobj instance void class Foo`1<int32>::'.ctor'()
+ call void class [mscorlib]System.Console::WriteLine(object)
+ ret
+ }
+
+ .method public static hidebysig default int32 Main () cil managed
+ {
+ .entrypoint
+ .maxstack 8
+ .try {
+ call void Driver::faulty ()
+ leave err
+ } catch class [mscorlib]System.TypeLoadException {
+ pop
+ leave ok
+ }
+
+err:
+ ldc.i4.1
+ ret
+ok:
+ ldc.i4.0
+ ret
+
+ }
+}
+
+

0 comments on commit 6273173

Please sign in to comment.