aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/088.sh
blob: 6630cf0540cc768df530461d2c2b5d0a6e72f5a7 (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
33
34
35
set -e

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

bash ../../test_diff.sh <<'EOF'
int printf();

int main() {
    for (int i = 0; i < 5; i++) {
        printf("%d\n", i);
    }
    for (int i = 0; i < 5; i++) {
        printf("%d\n", i);
    }
    int x = 42;
    {
        int x = 43;
        printf("%d\n", x);
    }
    printf("%d\n", x);
}
EOF