summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/cshift_shift_real_2.f90
blob: 0d92945d2375f8c5eeff74269c44ea434d72206a (plain)
1
2
3
4
5
6
7
8
! { dg-do compile }
! PR35724 Compile time segmentation fault for CSHIFT with negative third arg
      SUBROUTINE RA0072(DDA,LDA,nf10,nf1,mf1,nf2)
      REAL DDA(10,10)
      LOGICAL LDA(10,10)
      WHERE (LDA) DDA = CSHIFT(DDA,1,-MF1)  ! MF1 works, -1 works
      END SUBROUTINE