aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/041.sh
blob: b4bb21e3d4cb5c9cb4ba6cf8662633a34fb2e39d (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
26
27
28
29
30
31
32
set -e

cat <<'EOF' > expected
0
1
2
3
4

5
4
3
2
1
0
EOF
bash ../../test_diff.sh <<'EOF'
int printf();

int main() {
    int i = 0;
    for (; i < 5; i += 1) {
        printf("%d\n", i);
    }
    printf("\n");
    for (i = 5; i >= 0; i -= 1) {
        printf("%d\n", i);
    }

    return 0;
}
EOF