blob: a867cacba2073aaa7ac02ec223c9ce2033bc5899 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
|
cat <<'EOF' > expected
0
1
2
3
4
5
4
3
2
1
0
56088
24
3
EOF
test_diff <<'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);
}
int x = 123;
x *= 456;
printf("\n%d\n", x);
int y = 120;
y /= 5;
printf("\n%d\n", y);
int z = 17;
z %= 7;
printf("\n%d\n", z);
return 0;
}
EOF
|