fix pr/45972
[official-gcc.git] / gcc / testsuite / gfortran.dg / mvbits_5.f90
blob42d834668ec17e89f96c8b5772d63a7a88a5214e
1 ! { dg-do run }
3 ! PR fortran/38887
4 ! This aborted at runtime for the runtime zero-sized array arguments.
6 ! Contributed by Dick Hendrickson <dick.hendrickson@gmail.com>
8 program try_ya0013
9 integer ida(9)
10 call ya0013(ida,1,5,6)
11 end program
13 SUBROUTINE YA0013(IDA,nf1,nf5,nf6)
14 INTEGER IDA(9)
15 IDA = 1
16 CALL MVBITS(IDA(NF5:NF1), 0, 1, IDA(NF6:NF1),2)
17 END SUBROUTINE