Files
clang-p2996/flang/test/Semantics/modfile47.f90
PeixinQiao b826d551fc [NFC] Move flang OpenMP semantic tests under one single directory
To be consistent with OpenACC and will find the tests in one single
directory for OpenMP.

Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D127529
2022-06-11 10:46:42 +08:00

20 lines
359 B
Fortran

! RUN: %python %S/test_errors.py %s %flang_fc1
subroutine foo
end
subroutine iso_fortran_env
end
subroutine bad1
!ERROR: 'foo' is not a module
use foo
end
subroutine ok1
use, intrinsic :: iso_fortran_env
end
subroutine ok2
use iso_fortran_env
end
subroutine bad2
!ERROR: 'iso_fortran_env' is not a module
use, non_intrinsic :: iso_fortran_env
end