summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr45308.f03
blob: ba96104b02c8237ba2b6a61a85b13746d04416c6 (plain)
1
2
3
4
5
6
7
8
9
! PR fortran/45308
! { dg-do run }
 character(len=36) :: date, time
 date = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
 time = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
 call date_and_time (date, time)
 if (index (date, 'a') /= 0 .or. index (time, 'a') /= 0) &
   call abort
end