Fix monolite make dist
[mono.git] / mcs / tests / test-795.cs
1 using System;
2 using System.Reflection;
3
4 public class Test : MarshalByRefObject
5 {
6         public DateTime Stamp = new DateTime (1968, 1, 2);
7
8         public static int Main ()
9         {
10                 var setup = new AppDomainSetup();
11                 setup.ApplicationBase = System.Environment.CurrentDirectory;
12
13                 AppDomain d = AppDomain.CreateDomain ("foo", AppDomain.CurrentDomain.Evidence, setup);
14
15                 Test t = (Test) d.CreateInstanceAndUnwrap (Assembly.GetExecutingAssembly().FullName, typeof (Test).FullName);
16                 t.Stamp = new DateTime (1968, 1, 3);
17                 Console.WriteLine (t.Stamp);
18                 return 0;
19         }
20 }