1 ! RUN: bbc -hlfir=false %s -o - | FileCheck %s
3 ! CHECK-LABEL: func @_QPi
6 integer :: ctemp(10) = (/1,2,3,4,5,6,7,8,9,22/)
10 ! CHECK-LABEL: func @_QPs
12 integer, parameter :: LONGreal
= 8
13 real (kind
= LONGreal
), dimension(-1:11) :: x
= (/0,0,0,0,0,0,0,0,0,0,0,0,0/)
14 real (kind
= LONGreal
), dimension(0:12) :: g
= (/0,0,0,0,0,0,0,0,0,0,0,0,0/)
15 real (kind
= LONGreal
) :: gs(13)
18 gs
= g(0:12:1) + x(11:(-1):(-1))
20 !print *, dot_product(g(0:12:1), x(11:(-1):(-1)))
23 ! CHECK-LABEL: func @_QPs2
27 ! CHECK: fir.call @_FortranAioBeginExternalListOutput
29 ! CHECK: %[[s:.*]] = fir.slice {{.*}} !fir.slice<1>
30 ! CHECK: %[[p:.*]] = fir.array_coor %{{.*}} [%[[s]]] %
31 ! CHECK: fir.store %{{.*}} to %[[p]] : !fir.ref<f32>
33 ! CHECK: fir.call @_FortranAioBeginExternalListOutput
37 ! CHECK-LABEL: func @_QQmain
44 ! CHECK: %[[A:.*]] = fir.address_of(@_QFEa)
45 ! CHECK: %[[shape:.*]] = fir.shape %c10
46 ! CHECK: %[[slice:.*]] = fir.slice %
47 ! CHECK: fir.embox %[[A]](%[[shape]]) [%[[slice]]] :