Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/dec_io_5.f90 @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do run } ! { dg-options "-fdec" } ! { dg-shouldfail "ACTION conflicts with READONLY" } ! ! Test that we get a run-time error for opening a READONLY file with ! ACTION='WRITE'. ! implicit none integer :: fd = 8 character(*), parameter :: f = "dec_io_5.txt" character(10), volatile :: c c = 'write' open(unit=fd,file=f,action=c,readonly) end ! { dg-output "ACTION conflicts with READONLY" }