bolt/deps/llvm-18.1.8/flang/test/Semantics/ignore_tkr03.f90
2025-02-14 19:21:04 +01:00

21 lines
422 B
Fortran

! RUN: %flang_fc1 -fdebug-unparse %s 2>&1 | FileCheck %s
module library
contains
subroutine lib_sub(buf)
!dir$ ignore_tkr(c) buf
real :: buf(1:*)
end subroutine
end module
module user
use library
contains
subroutine sub(var, ptr)
real :: var(:,:,:)
real, pointer :: ptr(:)
! CHECK: CALL lib_sub
call lib_sub(var(1, 2, 3))
! CHECK: CALL lib_sub
call lib_sub(ptr(1))
end subroutine
end module