2010-02-19 Rodrigo Kumpera <rkumpera@novell.com>
[mcs.git] / tests / test-533.cs
blobe29e2f18736cac60645914975073b76a3a263211
1 using System;
2 class Test {
3 const bool bt = (false == false) & (false != true) & (true != false) & (true == true);
4 const bool bf = (false != false) | (false == true) | (true == false) | (true != true);
6 static void True (bool b) { False (!b); }
7 static void False (bool b) { if (b) throw new System.Exception (); }
8 static void Main ()
10 True (false == false);
11 False (false == true);
12 False (true == false);
13 True (true == true);
15 False (false != false);
16 True (false != true);
17 True (true != false);
18 False (true != true);
20 True (bt);
21 False (bf);