! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABLE: adjustl_test subroutine adjustl_test character(len=12) :: adjust_str = ' 0123456789' ! CHECK: %[[strBox:.*]] = fir.alloca !fir.box>> ! CHECK: %[[addr0:.*]] = fir.address_of(@_QFadjustl{{.*}}) : !fir.ref> ! CHECK: %[[eBox:.*]] = fir.embox %[[addr0]] : (!fir.ref>) -> !fir.box> ! CHECK: %[[r0:.*]] = fir.zero_bits !fir.heap> ! CHECK: %[[r1:.*]] = fir.embox %[[r0]] typeparams %{{.*}} : (!fir.heap>, index) -> !fir.box>> ! CHECK: fir.store %[[r1]] to %[[strBox]] : !fir.ref>>> ! CHECK: %[[r2:.*]] = fir.address_of(@_QQ{{.*}}) : !fir.ref> ! CHECK: %[[r3:.*]] = fir.convert %[[strBox]] : (!fir.ref>>>) -> !fir.ref> ! CHECK: %[[r4:.*]] = fir.convert %[[eBox]] : (!fir.box>) -> !fir.box ! CHECK: %[[r5:.*]] = fir.convert %[[r2]] : (!fir.ref>) -> !fir.ref ! CHECK: %[[r6:.*]] = fir.call @_FortranAAdjustl(%[[r3]], %[[r4]], %[[r5]], %{{.*}}) {{.*}}: (!fir.ref>, !fir.box, !fir.ref, i32) -> none adjust_str = adjustl(adjust_str) end subroutine