1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
cat <<'EOF' > expected 8 336 EOF test_diff <<'EOF' int printf(); int main() { printf("%d\n", 1 << 3); printf("%d\n", 21 << 4); } EOF cat <<'EOF' > expected 13 0 EOF test_diff <<'EOF' int printf(); int main() { printf("%d\n", 111 >> 3); printf("%d\n", 15 >> 14); } EOF