RISC-V: Refactor Dynamic LMUL codes
[official-gcc.git] / gcc / testsuite / gfortran.dg / noadv_size.f90
blobfe66b3a21dd4622b6dc9cc231a0285434eec6f47
1 ! { dg-do run }
2 ! PR 20774: Handle size parameter for non-advancing I/O correctly
3 program main
4 open(77,status='scratch')
5 write(77,'(A)') '123'
6 rewind(77)
7 read(77,'(2I2)',advance='no',iostat=k,size=n) i1,i2
8 if (k >=0) STOP 1
9 if (n /= 3) STOP 2
10 if (i1 /= 12 .or. i2 /= 3) STOP 3
11 end program main