diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-08-13 23:37:08 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-08-15 10:06:21 +0900 |
| commit | cefe477fdf8c8a7a081e08add9cafbe1d8a2acf0 (patch) | |
| tree | eb0e53cfebe273636ebaf3d6b5e50936903302ad /tests | |
| parent | 7685bff588632a486a9e677c63ae7123b112ba9e (diff) | |
| download | ducc-cefe477fdf8c8a7a081e08add9cafbe1d8a2acf0.tar.gz ducc-cefe477fdf8c8a7a081e08add9cafbe1d8a2acf0.tar.zst ducc-cefe477fdf8c8a7a081e08add9cafbe1d8a2acf0.zip | |
feat: implement shift operators
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/089.sh | 25 |
1 files changed, 25 insertions, 0 deletions
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 |
