mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 14:57:13 +00:00

Patch 2/3 of the transition step 1 described in https://discourse.llvm.org/t/rfc-enabling-the-hlfir-lowering-by-default/72778/7. All the modified tests are still here since coverage for the direct lowering to FIR was still needed while it was default. Some already have an HLFIR version, some have not and will need to be ported in step 2 described in the RFC. Note that another 147 lit tests use -emit-fir/-emit-llvm outputs but do not need a flag since the HLFIR/no HLFIR output is the same for what is being tested.
14 lines
718 B
Fortran
14 lines
718 B
Fortran
! RUN: bbc %s -o "-" -emit-fir -hlfir=false | FileCheck %s
|
|
! Test lowering of calls to procedures with implicit interfaces using different
|
|
! calls with different argument types, one of which is character
|
|
subroutine s2
|
|
integer i(3)
|
|
! CHECK: %[[a0:.*]] = fir.alloca !fir.array<3xi32> {bindc_name = "i", uniq_name = "_QFs2Ei"}
|
|
! CHECK: fir.call @_QPsub2(%[[a0]]) {{.*}}: (!fir.ref<!fir.array<3xi32>>) -> ()
|
|
call sub2(i)
|
|
! CHECK: %[[a1:.*]] = fir.address_of(@_QQclX3031323334) : !fir.ref<!fir.char<1,5>>
|
|
! CHECK: %[[a2:.*]] = fir.convert %[[a1]] : (!fir.ref<!fir.char<1,5>>) -> !fir.ref<!fir.array<3xi32>>
|
|
! CHECK: fir.call @_QPsub2(%[[a2]]) {{.*}}: (!fir.ref<!fir.array<3xi32>>) -> ()
|
|
call sub2("01234")
|
|
end
|