Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / marshal-valuetypes.cs
index 17bd016d4ba2033034492d3472b8a0e4a656364d..7d4aa3e7dec299dbba62a132242b0c9a34dd7dec 100644 (file)
@@ -3,6 +3,7 @@ using System;
 public class Test: MarshalByRefObject
 {
         public DateTime Stamp = new DateTime (1968, 1, 2);
+       public double perc = 5.4;
 
         static int Main ()
         {
@@ -10,6 +11,9 @@ public class Test: MarshalByRefObject
                 Test t = (Test) d.CreateInstanceAndUnwrap (typeof (Test).Assembly.FullName, typeof (Test).FullName);
                if (t.Stamp != new DateTime (1968, 1, 2))
                        return 1;
+               t.perc = 7.2;
+               if (t.perc != 7.2)
+                       return 2;
                return 0;
         }
 }