diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/cshift_shift_real_2.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/cshift_shift_real_2.f90 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/cshift_shift_real_2.f90 b/gcc/testsuite/gfortran.dg/cshift_shift_real_2.f90 new file mode 100644 index 000000000..0d92945d2 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/cshift_shift_real_2.f90 @@ -0,0 +1,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 + |