X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Ftests%2Fremoting5.cs;h=223fd112f01e2a2ae69ae3c7e8ab575203c74d2d;hb=d37c137425604cec80c37e6a405a000f2459b8fe;hp=b57206dc7b74435214ec45c73e11f2af26c54c41;hpb=7ff8f29ff29fa3f08ef305ac43ef079097323286;p=mono.git diff --git a/mono/tests/remoting5.cs b/mono/tests/remoting5.cs index b57206dc7b7..223fd112f01 100644 --- a/mono/tests/remoting5.cs +++ b/mono/tests/remoting5.cs @@ -60,9 +60,14 @@ class MyProxy : RealProxy { } } +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 (); } }