New I/O specifiers CARRIAGECONTROL, READONLY, SHARE with -fdec.
[official-gcc.git] / gcc / testsuite / gfortran.dg / dec_io_6.f90
bloba0c025680fbe7b9c6fc47967f0c8300bc3b2dad2
1 ! { dg-do run "xfail *-*-*" }
2 ! { dg-options "-fdec" }
4 ! Test that we get a run-time error for close-on-delete with READONLY.
7 implicit none
9 integer :: fd = 8
10 character(*), parameter :: f = "test.txt"
12 open(unit=fd,file=f,action='read',readonly)
13 close(unit=fd,status='delete') ! XFAIL "protected by READONLY"
15 end