1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
set -e cat <<'EOF' > expected 4 0,1,2 EOF bash ../../test_diff.sh <<'EOF' int printf(); enum E { A, B, C, }; int main() { enum E x = A; printf("%d\n", sizeof(enum E)); printf("%d,%d,%d\n", A, B, C); return 0; } EOF