From 0385817bb1301a778bb33f8405a435293b9f8905 Mon Sep 17 00:00:00 2001 From: David Moc Date: Thu, 5 Mar 2026 23:38:49 +0100 Subject: Pushing to repo for safety. --- tests/logical.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/logical.c (limited to 'tests/logical.c') diff --git a/tests/logical.c b/tests/logical.c new file mode 100644 index 0000000..6bd1018 --- /dev/null +++ b/tests/logical.c @@ -0,0 +1,14 @@ +int main() { + int a = 1; + int b = 0; + int c = 1; + + int and1 = a && b; + int and2 = a && c; + int or1 = a || b; + int or2 = b || b; + int not1 = !a; + int not2 = !b; + + return and1 + and2 + or1 + or2 + not1 + not2; +} -- cgit v1.2.3