[mono/tests] Fix out of tree build.
[mono-project.git] / mcs / tests / test-833.cs
blobe0e263d435927787e29d8e475998b317d7457cb2
1 using System;
3 class MainClass
5 public struct DC
7 public readonly Guid m_Id;
9 public DC (Guid Id)
11 m_Id = Id;
14 public Guid Id
16 get { return m_Id; }
22 public static int Main ()
24 Guid Id = Guid.NewGuid ();
25 DC dc = new DC (Id);
26 Console.WriteLine ("id: {0} default: {1}", Id, default (Guid));
27 if (dc.Id.Equals (default (Guid)))
28 return 1;
30 if (dc.m_Id.Equals (default (Guid)))
31 return 2;
33 Console.WriteLine ("ok");
34 return 0;