Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

24 lines
588 B
C#

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);
}
}