2 ! PR 21875 : Test formatted input/output to/from character arrays.
3 ! This test checks the error checking for non-contiguous character
4 ! arrays which are not allowed by standard. Error 13 is
5 ! ERROR_ARRAY_STRIDE in libgfortran.h
9 character(12) :: r(2,3,4) = '0123456789AB'
11 write(r(::2,:,::1),'(i5)', iostat=ierr) 1,2,3,4,5
12 if (ierr.ne.13) call abort()
14 write(r(:,:,::2),'(i5)', iostat=ierr) 1,2,3,4,5
15 if (ierr.ne.13) call abort()
17 write(r(::1,::2,::1),'(i5)', iostat=ierr) 1,2,3,4,5
18 if (ierr.ne.13) call abort()
20 write(r(::1,::1,::1),'(i5)', iostat=ierr) 1,2,3,4,5
21 if (ierr.ne.0) call abort()