PR libfortran/23262
[official-gcc.git] / gcc / testsuite / gfortran.dg / inquire.f90
blob9f3b72532af9c4e74189b2b444d79f040d2aca66
1 ! { dg-do run }
2 ! check to see that you cannot open a direct access file
3 ! for sequential i/o.
4 ! derived from NIST test fm910.for
5 IMPLICIT NONE
6 CHARACTER*10 D4VK
7 OPEN(UNIT=7, ACCESS='DIRECT',RECL=132,STATUS='SCRATCH')
8 INQUIRE(UNIT=7,SEQUENTIAL=D4VK)
9 CLOSE(UNIT=7,STATUS='DELETE')
10 IF (D4VK.NE.'NO') CALL ABORT
11 END