Ensure diagnostics from the prescanner are reported when running flang-new -fsyntax-only (i.e. only syntax parsing).
This keeps the diagnostics output of flang-new consistent with f18 -fparse-only when running the syntax parsing action, ParseSyntaxOnlyAction.
Summary of changes:
- Modify ParseSyntaxOnlyAction::ExecuteAction to report diagnostics
In this test we want to make sure that f18 and flang-new behave similarly in the context of generating diagnostics. As per our spreadsheet:
should behave similarly. Could you add RUN line with f18 -parse-only?