[LoopReroll] Add an extra defensive check to avoid SCEV assertion.
[llvm-project.git] / flang / test / Semantics / call16.f90
blob12cab97efcf07e5fe2f564926e64736f637029de
1 ! RUN: %S/test_errors.sh %s %t %flang_fc1
2 ! REQUIRES: shell
4 ! Test that intrinsic functions used as subroutines and vice versa are caught.
6 subroutine test(x, t)
7 intrinsic :: sin, cpu_time
8 !ERROR: Cannot use intrinsic function 'sin' as a subroutine
9 call sin(x)
10 !ERROR: Cannot use intrinsic subroutine 'cpu_time' as a function
11 x = cpu_time(t)
12 end subroutine