[configure] Add new target.
[mono-project.git] / mcs / tests / test-795.cs
blob9654d6dc6e6c1c77a907f80a41048a01cd2c1ab5
1 // Compiler options: -warnaserror
3 using System;
4 using System.Reflection;
6 public class Test : MarshalByRefObject
8 public DateTime Stamp = new DateTime (1968, 1, 2);
10 public static int Main ()
12 var setup = new AppDomainSetup();
13 setup.ApplicationBase = System.Environment.CurrentDirectory;
15 AppDomain d = AppDomain.CreateDomain ("foo", AppDomain.CurrentDomain.Evidence, setup);
17 Test t = (Test) d.CreateInstanceAndUnwrap (Assembly.GetExecutingAssembly().FullName, typeof (Test).FullName);
18 t.Stamp = new DateTime (1968, 1, 3);
19 Console.WriteLine (t.Stamp);
20 return 0;