1 ! RUN: bbc %s -o - | FileCheck %s
5 ! CHECK-DAG: %[[TMP:.*]] = fir.alloca
6 ! CHECK-DAG: %[[TEN:.*]] = arith.constant
7 ! CHECK: fir.store %[[TEN]] to %[[TMP]]
8 ! CHECK-NEXT: fir.call @_QFPfoo
12 ! CHECK-LABEL: func @_QFPfoo
15 ! integer :: my_data, my_data2
16 ! DATA my_data / 150 /
17 ! DATA my_data2 / 150 /
18 ! print *, my_data, my_data2
24 ! CHECK-LABEL: func @_QPsub2
27 ! CHECK: %[[coor:.*]] = fir.coordinate_of %arg0
28 ! CHECK: = fir.call @_QPf(%[[coor]]) {{.*}}: (!fir.ref<f32>) -> f32
30 ! CHECK: return %{{.*}} : f32
33 ! Test TARGET attribute lowering
34 ! CHECK-LABEL: func @_QPtest_target(
35 ! CHECK-SAME: !fir.ref<i32> {fir.bindc_name = "i", fir.target},
36 ! CHECK-SAME: !fir.box<!fir.array<?xf32>> {fir.bindc_name = "x", fir.target})
37 subroutine test_target(i
, x
)