1 ! RUN: %python %S/test_errors.py %s %flang_fc1 -pedantic
2 ! Test intrinsic vs non_intrinsic module coexistence
4 integer, parameter :: user_defined_123
= 123
7 use, intrinsic :: iso_fortran_env
, only
: int32
8 !PORTABILITY: Should not USE the non-intrinsic module 'iso_fortran_env' in the same scope as a USE of the intrinsic module
9 use, non_intrinsic
:: iso_fortran_env
, only
: user_defined_123
12 use, intrinsic :: iso_fortran_env
, only
: int32
15 use, non_intrinsic
:: iso_fortran_env
, only
: user_defined_123
18 use :: iso_fortran_env
, only
: user_defined_123
21 !ERROR: Cannot read module file for module 'ieee_arithmetic': Source file 'ieee_arithmetic.mod' was not found
22 use, non_intrinsic
:: ieee_arithmetic
, only
: ieee_selected_real_kind
24 module notAnIntrinsicModule
27 !ERROR: Cannot read module file for module 'notanintrinsicmodule': Source file 'notanintrinsicmodule.mod' was not found
28 use, intrinsic :: notAnIntrinsicModule