Permalink
Browse files

2005-10-07 Zoltan Varga <vargaz@gmail.com>

	* remoting5.cs: Add test for ldflda on MBR objects.

svn path=/trunk/mono/; revision=51402
  • Loading branch information...
1 parent 8a44a15 commit 2e747dc3c3c08e956eedfc74e8154bdad2107ec5 @vargaz vargaz committed Oct 7, 2005
Showing with 14 additions and 0 deletions.
  1. +4 −0 mono/tests/ChangeLog
  2. +10 −0 mono/tests/remoting5.cs
View
@@ -1,3 +1,7 @@
+2005-10-07 Zoltan Varga <vargaz@gmail.com>
+
+ * remoting5.cs: Add test for ldflda on MBR objects.
+
2005-10-07 Zoltan Varga <vargaz@gmail.com>
* pinvoke.cs: Remove test loading cygwin1.dll under cygwin.
View
@@ -60,9 +60,14 @@ public MyProxy (MarshalByRefObject target) : base (target.GetType())
}
}
+public struct TestStruct {
+ public int F;
+}
class R1 : MarshalByRefObject {
+ public TestStruct S;
+
public int test_field = 5;
public virtual int ldfield_test () {
@@ -85,6 +90,11 @@ class Test {
static int Main () {
R1 myobj = new R1 ();
+ // Test ldflda on MarshalByRefObjects
+ myobj.S.F = -1;
+ if (myobj.S.F != -1)
+ return 1;
+
return myobj.ldfield_test ();
}
}

0 comments on commit 2e747dc

Please sign in to comment.