1 ! RUN: bbc %s -o "-" -emit-fir | FileCheck %s
4 integer, intent(in
) :: a
8 ! Check that arguments are correctly set and no local allocation is happening.
9 ! CHECK-LABEL: func @_QPsub1(
10 ! CHECK-SAME: %{{.*}}: !fir.ref<i32> {fir.bindc_name = "a"}, %{{.*}}: !fir.ref<!fir.logical<4>> {fir.bindc_name = "b"})
11 ! CHECK-NOT: fir.alloc
18 ! CHECK-LABEL: func @_QPsub2(
19 ! CHECK-SAME: %{{.*}}: !fir.ref<!fir.array<2x5xi32>>{{.*}})
25 ! CHECK-LABEL: func @_QPsub3(
26 ! CHECK-SAME: %{{.*}}: !fir.ref<!fir.array<2xf32>>{{.*}})
28 integer function fct1(a
, b
)
29 integer, intent(in
) :: a
33 ! CHECK-LABEL: func @_QPfct1(
34 ! CHECK-SAME: %{{.*}}: !fir.ref<i32> {fir.bindc_name = "a"}, %{{.*}}: !fir.ref<!fir.logical<4>> {fir.bindc_name = "b"}) -> i32
40 ! CHECK-LABEL: func @_QPfct2(
41 ! CHECK-SAME: %{{.*}}: !fir.ref<!fir.array<2x5xi32>> {fir.bindc_name = "i"}) -> f32
47 ! CHECK-LABEL: func @_QPfct3(
48 ! CHECK-SAME: %{{.*}}: !fir.ref<!fir.array<2xf32>> {fir.bindc_name = "i"}) -> f32
50 subroutine allocatable_real(x
)
51 real, allocatable
:: x
54 ! CHECK-LABEL: func @_QPallocatable_real(
55 ! CHECK-SAME: %{{.*}}: !fir.ref<!fir.box<!fir.heap<f32>>> {fir.bindc_name = "x"}) {