blob: fb9dbdb6f5f429cc473bbd0472d2024f0c301d98 (
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
65
65
66
67
68
EOF
bash ../../test_diff.sh <<'EOF'
void* calloc();
int printf();
int main() {
char* source = calloc(4, sizeof(char));
source[0] = 'A';
source[1] = 'B';
source[2] = 'C';
source[3] = 'D';
int a = source[0];
printf("%d\n", a);
printf("%d\n", source[0]);
printf("%d\n", source[1]);
printf("%d\n", source[2]);
printf("%d\n", source[3]);
return 0;
}
EOF
|