1 ! Test that logicals are lowered to Fortran logical types where it matters
2 ! RUN: bbc %s -emit-fir -o - | FileCheck %s
4 ! Logicals should be lowered to Fortran logical types in memory/function
8 ! CHECK-LABEL: _QPtest_value_arguments
9 subroutine test_value_arguments()
19 ! CHECK: %[[true2:.*]] = fir.convert %true{{.*}} : (i1) -> !fir.logical<2>
20 ! CHECK: fir.store %[[true2]] to %[[mem2:.*]] : !fir.ref<!fir.logical<2>>
21 ! CHECK: fir.call @_QPfoo2(%[[mem2]]) {{.*}}: (!fir.ref<!fir.logical<2>>) -> ()
24 ! CHECK: %[[true4:.*]] = fir.convert %true{{.*}} : (i1) -> !fir.logical<4>
25 ! CHECK: fir.store %[[true4]] to %[[mem4:.*]] : !fir.ref<!fir.logical<4>>
26 ! CHECK: fir.call @_QPfoo4(%[[mem4]]) {{.*}}: (!fir.ref<!fir.logical<4>>) -> ()