[flang] Add tests for .mod file writing
authorTim Keith <tkeith@nvidia.com>
Mon, 16 Jul 2018 23:24:14 +0000 (16:24 -0700)
committerTim Keith <tkeith@nvidia.com>
Mon, 16 Jul 2018 23:24:14 +0000 (16:24 -0700)
commit43f2ce0739378bb54e2c7eaaa2906cc3457ce489
tree30cb1cd65c52d44a392f739020e4e47daf961ba7
parent0c575ed5484b28c716ba50b39276b38eb095aff6
[flang] Add tests for .mod file writing

The source files contain the expected contents of generated .mod files.
`test_modfile.sh` compiles the source file and verifies that the correct
.mod files are generated.

Original-commit: flang-compiler/f18@a23f53c1a7d6f1dba157c1bc87ebc046d3b818e6
Reviewed-on: https://github.com/flang-compiler/f18/pull/126
Tree-same-pre-rewrite: false
flang/test/semantics/CMakeLists.txt
flang/test/semantics/modfile01.f90 [new file with mode: 0644]
flang/test/semantics/modfile02.f90 [new file with mode: 0644]
flang/test/semantics/modfile03.f90 [new file with mode: 0644]
flang/test/semantics/test_modfile.sh [new file with mode: 0755]