1 ! RUN: %python %S/test_errors.py %s %flang_fc1
5 subroutine testExplicit
7 !ERROR: 'cos' is use-associated from module 'explicit' and cannot be re-declared
10 subroutine extendsUsedIntrinsic
13 pure
real function mycos(x
)
18 subroutine sameIntrinsic1
20 !WARNING: Use-associated 'cos' already has 'INTRINSIC' attribute
25 use explicit
, renamedCos
=> cos
27 subroutine sameIntrinsic2
29 use renamer
, cos
=> renamedCos
35 subroutine testImplicit