[flang] Add name resolution tests
The Fortran source files in test/semantics all contain expected errors in comments. The script test_errors.sh compiles a file with 'f18 -fdebug-resolve-names -fparse-only' and compares the actual errors produced against the expected ones. The change to resolve15.f90 is necessary because test_errors.sh can't handle two expected errors for the same source line. A useful command to run these is 'ctest -R f90 --output-on-failure'. -R means only run tests with f90 in the name --output-on-failure prints the output of test_errors.sh when a test fails, showing the expected and actual messages that differ. Original-commit: flang-compiler/f18@df18ee7bc95628503b37648d98c5ae25bc74b227 Reviewed-on: https://github.com/flang-compiler/f18/pull/105
Loading
Please sign in to comment