From cefe477fdf8c8a7a081e08add9cafbe1d8a2acf0 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 13 Aug 2025 23:37:08 +0900 Subject: feat: implement shift operators --- tests/089.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tests/089.sh (limited to 'tests') diff --git a/tests/089.sh b/tests/089.sh new file mode 100644 index 0000000..d0faca3 --- /dev/null +++ b/tests/089.sh @@ -0,0 +1,25 @@ +set -e + +cat <<'EOF' > expected +8 +336 +EOF +bash ../../test_diff.sh <<'EOF' +int printf(); +int main() { + printf("%d\n", 1 << 3); + printf("%d\n", 21 << 4); +} +EOF + +cat <<'EOF' > expected +13 +0 +EOF +bash ../../test_diff.sh <<'EOF' +int printf(); +int main() { + printf("%d\n", 111 >> 3); + printf("%d\n", 15 >> 14); +} +EOF -- cgit v1.2.3-70-g09d2