aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/089.sh
blob: d0faca32b95759ae0740adf81a22f8b41fa6e363 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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