Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / tests / test-795.cs
1 // Compiler options: -warnaserror
2
3 using System;
4 using System.Reflection;
5
6 public class Test : MarshalByRefObject
7 {
8         public DateTime Stamp = new DateTime (1968, 1, 2);
9
10         public static int Main ()
11         {
12                 var setup = new AppDomainSetup();
13                 setup.ApplicationBase = System.Environment.CurrentDirectory;
14
15                 AppDomain d = AppDomain.CreateDomain ("foo", AppDomain.CurrentDomain.Evidence, setup);
16
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;
21         }
22 }