16 lines
402 B
Fortran
16 lines
402 B
Fortran
|
! RUN: %python %S/test_errors.py %s %flang_fc1 -pedantic
|
||
|
!ERROR: Some modules in this compilation unit form one or more cycles of dependence
|
||
|
module m1
|
||
|
use m2
|
||
|
end
|
||
|
|
||
|
!PORTABILITY: A USE statement referencing module 'm2' appears earlier in this compilation unit
|
||
|
module m2
|
||
|
use m3
|
||
|
end
|
||
|
|
||
|
!PORTABILITY: A USE statement referencing module 'm3' appears earlier in this compilation unit
|
||
|
module m3
|
||
|
use m1
|
||
|
end
|