Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / marshal-valuetypes.cs
1 using System;
2
3 public class Test: MarshalByRefObject
4 {
5         public DateTime Stamp = new DateTime (1968, 1, 2);
6         public double perc = 5.4;
7
8         static int Main ()
9         {
10                 AppDomain d = AppDomain.CreateDomain ("foo");
11                 Test t = (Test) d.CreateInstanceAndUnwrap (typeof (Test).Assembly.FullName, typeof (Test).FullName);
12                 if (t.Stamp != new DateTime (1968, 1, 2))
13                         return 1;
14                 t.perc = 7.2;
15                 if (t.perc != 7.2)
16                         return 2;
17                 return 0;
18         }
19 }