summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/slash_1.f90
blob: d4a59a31acfe101c862321e81e07c02a9a29ff3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
! PR libfortran/22170
! { dg-do run }
  integer i
  open (10,status='scratch')
  write (10,'(A,2/,A)') '12', '17'
  rewind (10)
  read (10,'(I2)') i
  if (i /= 12) call abort
  read (10,'(I2)') i
  if (i /= 0) call abort
  read (10,'(I2)') i
  if (i /= 17) call abort
  end