aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/069.sh
blob: 2a4302286399a355f5a4ce8546c04c4841cd4d35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
set -e

cat <<'EOF' > expected
h
l
,
EOF

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

int main() {
    char* h = " hello,world" + 1;
    printf("%c\n", *h);
    printf("%c\n", h[2]);
    printf("%c\n", *(h + 5));
}
EOF