2009-02-10 Jeffrey Stedfast <fejj@novell.com>
[mono-project/dkf.git] / mcs / tests / test-376.cs
blob62371f3c0cde7fbfd762423188809d7c23deccb2
1 using System;
3 class C {
4 internal enum Flags {
5 Removed = 0,
6 Public = 1
9 static Flags _enumFlags;
11 public static int Main()
13 bool xx = Flags.Public != 0;
14 bool xx2 = 0 < Flags.Public;
16 if ((_enumFlags & Flags.Removed) != 0)
17 return 3;
19 if ((Flags.Public & 0).ToString () != "Removed")
20 return 1;
22 if ((0 & Flags.Public).ToString () != "Removed")
23 return 1;
25 Console.WriteLine ("OK");
26 return 0;