aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/089.sh
blob: e467a26a83c033262811eb9ec9d2ad1ce7fbe042 (plain)
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