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

30 lines
704 B
C#

using System;
namespace Test
{
public class TestBit {
const bool a00 = false & false;
const bool a01 = false & true;
const bool a10 = true & false;
const bool a11 = true & true;
const bool o00 = false | false;
const bool o01 = false | true;
const bool o10 = true | false;
const bool o11 = true | true;
const bool x00 = false ^ false;
const bool x01 = false ^ true;
const bool x10 = true ^ false;
const bool x11 = true ^ true;
const bool correct = !a00 & !a01 & !a10 & a11 & !o00 & o01 & o10 & o11 & !x00 & x01 & x10 & !x11;
public static void Main()
{
if (!correct)
throw new Exception ();
}
}
}