2010-04-05 Rodrigo Kumpera <rkumpera@novell.com>
authorRodrigo Kumpera <kumpera@gmail.com>
Mon, 5 Apr 2010 21:02:00 +0000 (21:02 -0000)
committerRodrigo Kumpera <kumpera@gmail.com>
Mon, 5 Apr 2010 21:02:00 +0000 (21:02 -0000)
* bug-515884.il: New regression test.

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

mono/tests/ChangeLog
mono/tests/Makefile.am
mono/tests/bug-515884.il [new file with mode: 0644]

index 3a92e3e79a869dcaa15355f215314f0eed4c3968..c1763e4ef6a7e401576d0c671e1adb260f3a1693 100644 (file)
@@ -1,3 +1,7 @@
+2010-04-05 Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * bug-515884.il: New regression test.
+
 2010-04-02  Zoltan Varga  <vargaz@gmail.com>
 
        * libtest.c: Add OpenBSD to the list of defines.
index 0dc7c5dfd4da452ebbe94c42a869e29fd3cf8a2c..b9c0fc984bf5613fde63fe9391a6f355d3d343ed 100644 (file)
@@ -481,7 +481,8 @@ TEST_IL_SRC=                        \
        constraints-load.il     \
        array_load_exception.il \
        bug-481403.il   \
-       interface-with-static-method.il
+       interface-with-static-method.il \
+       bug-515884.il
 
 #      bug-318677.il
 
diff --git a/mono/tests/bug-515884.il b/mono/tests/bug-515884.il
new file mode 100644 (file)
index 0000000..7e4972a
--- /dev/null
@@ -0,0 +1,37 @@
+.assembly extern mscorlib\r
+{\r
+  .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )                         // .z\V.4..\r
+  .ver 2:0:0:0\r
+}\r
+.assembly ConsoleApplication1\r
+{\r
+  .hash algorithm 0x00008004\r
+  .ver 0:0:0:0\r
+}\r
+.module ConsoleApplication1.exe\r
+\r
+\r
+.class private auto ansi beforefieldinit ConsoleApplication1.Program extends [mscorlib]System.Object\r
+{\r
+       .method public hidebysig static int32 Main(string[] args) cil managed\r
+       {\r
+               .entrypoint\r
+               .maxstack 8\r
+               .locals init (class [mscorlib]System.AppDomain V_0)\r
+
+               ldstr "Test"\r
+               call class [mscorlib]System.AppDomain [mscorlib]System.AppDomain::CreateDomain(string)
+               call instance string [mscorlib]System.AppDomain::get_FriendlyName()\r
+
+               ldstr "Test"\r
+               callvirt instance bool [mscorlib]System.Object::Equals (object)
+               brfalse END
+
+               ldc.i4.0
+               ret
+
+END:
+               ldc.i4.1
+               ret
+       }\r
+}