1 2 3 4 5 6 7 8 9 10
set -e cat <<'EOF' > expected undefined function: f EOF bash ../../test_compile_error.sh <<'EOF' int main() { f(); } EOF