New I/O specifiers CARRIAGECONTROL, READONLY, SHARE with -fdec.
[official-gcc.git] / gcc / testsuite / gfortran.dg / dec_io_5.f90
blob9d44c6e79742e50265783fe5318d3c455033e136
1 ! { dg-do run "xfail *-*-*" }
2 ! { dg-options "-fdec" }
4 ! Test that we get a run-time error for opening a READONLY file with
5 ! ACTION='WRITE'.
8 implicit none
10 integer :: fd = 8
11 character(*), parameter :: f = "test.txt"
12 character(10), volatile :: c
13 c = 'write'
15 open(unit=fd,file=f,action=c,readonly) ! XFAIL "ACTION conflicts with READONLY"
17 end