1! RUN: %B/test/Semantics/test_errors.sh %s %flang %t
2module m1
3  interface
4    module subroutine s()
5    end subroutine
6  end interface
7end
8
9module m2
10  interface
11    module subroutine s()
12    end subroutine
13  end interface
14end
15
16submodule(m1) s1
17end
18
19!ERROR: Error reading module file for submodule 's1' of module 'm2'
20submodule(m2:s1) s2
21end
22
23!ERROR: Error reading module file for module 'm3'
24submodule(m3:s1) s3
25end
26