Break circular dependency between FIR dialect and utilities
[llvm-project.git] / flang / test / Semantics / modfile47.f90
blob030258098ff190a37e5bb6ffa815aade70cd6a42
1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 subroutine foo
3 end
4 subroutine iso_fortran_env
5 end
6 subroutine bad1
7 !ERROR: 'foo' is not a module
8 use foo
9 end
10 subroutine ok1
11 use, intrinsic :: iso_fortran_env
12 end
13 subroutine ok2
14 use iso_fortran_env
15 end
16 subroutine bad2
17 !ERROR: 'iso_fortran_env' is not a module
18 use, non_intrinsic :: iso_fortran_env
19 end