Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-376.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 62371f3c0cde7fbfd762423188809d7c23deccb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;

class C {
	internal enum Flags {
		Removed	= 0,
		Public	= 1
	}

	static Flags	_enumFlags;
		
	public static int Main()
	{	
		bool xx = Flags.Public != 0;
		bool xx2 = 0 < Flags.Public;
	    
		if ((_enumFlags & Flags.Removed) != 0)
			return 3;

		if ((Flags.Public & 0).ToString () != "Removed")
		    return 1;
		
		if ((0 & Flags.Public).ToString () != "Removed")
		    return 1;
		
		Console.WriteLine ("OK");
		return 0;
	}
}