Move the unit test from InputOutputTest.cpp and re-implement it in terms
of the FrontendActionTest fixture. This is just a small code clean-up.
Moving forward we should try implementing all unit-test cases for
Flang's frontend actions in terms of FrontendActionTest.
This is a continuation of: https://reviews.llvm.org/D93544