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