aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/068.sh
blob: b3fc394df4fde736922afc84067556bc9bcb7d1d (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
cat <<'EOF' > expected
0
1
4
9
16
25
36
49
64
81
EOF

test_diff <<'EOF'
int printf();

int main() {
    int i;
    int a[10];
    for (i = 0; i < 10; ++i) {
        a[i] = i * i;
    }
    for (i = 0; i < 10; ++i) {
        printf("%d\n", a[i]);
    }
}
EOF