1! RUN: %S/test_errors.sh %s %t %flang_fc1
2! REQUIRES: shell
3module m1
4end
5
6subroutine sub
7end
8
9use m1
10!ERROR: Cannot read module file for module 'm2': Source file 'm2.mod' was not found
11use m2
12!ERROR: 'sub' is not a module
13use sub
14end
15