* test-531.cs, test-531-lib.il: New test from #79451.
authorRaja R Harinath <harinath@hurrynot.org>
Fri, 22 Sep 2006 14:14:55 +0000 (14:14 -0000)
committerRaja R Harinath <harinath@hurrynot.org>
Fri, 22 Sep 2006 14:14:55 +0000 (14:14 -0000)
svn path=/trunk/mcs/; revision=65817

mcs/tests/ChangeLog
mcs/tests/test-531-lib.il [new file with mode: 0644]
mcs/tests/test-531.cs [new file with mode: 0644]

index d2aae55d71911bd1a052ec4aa486181cff435133..42d284d1f491c1b5d29f5b2ef165861c5a6cf8b0 100644 (file)
@@ -1,3 +1,7 @@
+2006-09-22  Raja R Harinath  <rharinath@novell.com>
+
+       * test-531.cs, test-531-lib.il: New test from #79451.
+
 2006-09-01  Martin Baulig  <martin@ximian.com>
 
        * gtest-284.cs: New big test for the generic array interfaces.
diff --git a/mcs/tests/test-531-lib.il b/mcs/tests/test-531-lib.il
new file mode 100644 (file)
index 0000000..dc58861
--- /dev/null
@@ -0,0 +1,25 @@
+.assembly extern mscorlib {}
+.assembly 'test-531-lib' {}
+.module 'test-531-lib.dll'
+.imagebase 0x00400000
+.subsystem 0x00000003
+.file alignment 512
+.corflags 0x00000001
+
+.class public auto ansi beforefieldinit TestLib
+       extends [mscorlib]System.Object
+{
+  .field static privatescope int32 FOO
+
+  .method public hidebysig specialname static int32
+          get_FOO() cil managed
+  {
+    ldsfld      int32 TestLib::FOO
+    ret
+  }
+
+  .property int32 FOO()
+  {
+    .get int32 TestLib::get_FOO()
+  }
+}
diff --git a/mcs/tests/test-531.cs b/mcs/tests/test-531.cs
new file mode 100644 (file)
index 0000000..70ffb04
--- /dev/null
@@ -0,0 +1,9 @@
+// Compiler options: -r:test-531-lib.dll
+
+public class Test
+{
+   public static void Main()
+   {
+      System.Console.WriteLine(TestLib.FOO);
+   }
+}