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

test-533.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6c85f26db7962a6f2465392499c14f14bc2f8c20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System;
class Test {
	const bool bt = (false == false) & (false != true) & (true != false) & (true == true);
	const bool bf = (false != false) | (false == true) | (true == false) | (true != true);

	static void True  (bool b) { False (!b); }
	static void False (bool b) { if (b) throw new System.Exception (); }
	public static void Main ()
	{
		True  (false == false);
		False (false == true);
		False (true  == false);
		True  (true  == true);

		False (false != false);
		True  (false != true);
		True  (true  != false);
		False (true  != true);

		True  (bt);
		False (bf);
	}
}