aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-07-29 08:51:00 +0900
committernsfisis <nsfisis@gmail.com>2025-08-15 10:04:36 +0900
commitf30a6e048ccadd33c889caaa8012cfabfd5c2da9 (patch)
treed64763931b2013024feb8505785840d47c51a03f /tests
parentbfd0e04870c7cc55e8c2a9ee5e7b3e39fc9286c2 (diff)
downloadducc-f30a6e048ccadd33c889caaa8012cfabfd5c2da9.tar.gz
ducc-f30a6e048ccadd33c889caaa8012cfabfd5c2da9.tar.zst
ducc-f30a6e048ccadd33c889caaa8012cfabfd5c2da9.zip
feat: implement bitwise or
Diffstat (limited to 'tests')
-rw-r--r--tests/067.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/067.sh b/tests/067.sh
new file mode 100644
index 0000000..0abac88
--- /dev/null
+++ b/tests/067.sh
@@ -0,0 +1,15 @@
+set -e
+
+cat <<'EOF' > expected
+123
+460
+EOF
+
+bash ../../test_diff.sh <<'EOF'
+int printf();
+
+int main() {
+ printf("%d\n", 0 | 123);
+ printf("%d\n", 12 | 456);
+}
+EOF