17 lines · plain
1! RUN: %flang_fc1 -fsyntax-only -I%S/Inputs/dir1 %s2! RUN: not %flang_fc1 -fsyntax-only -I%S/Inputs/dir2 -w %s 2>&1 | FileCheck --check-prefix=ERROR %s3! RUN: %flang_fc1 -Werror -fsyntax-only -I%S/Inputs/dir1 -I%S/Inputs/dir2 %s4 5! Inputs/dir1 and Inputs/dir2 each have identical copies of modfile63b.mod.6! modfile63b.mod depends on Inputs/dir1/modfile63a.mod - the version in7! Inputs/dir2/modfile63a.mod has a distinct checksum.8 9! If it becomes necessary to recompile those modules, just use the10! module files as Fortran source.11 12use modfile63b13call s214end15 16! ERROR: Cannot use module file for module 'modfile63a': File is not the right module file for 'modfile63a':17