Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/write_check4.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 compile } ! ! PR fortran/35840 ! ! The asynchronous specifier for a data transfer statement shall be ! an initialization expression ! ! Contributed by Tobias Burnus <burnus@gcc.gnu.org> ! character(2) :: no no = "no" open (unit=10, asynchronous = no) ! Ok, it isn't a transfer stmt write(*,*, asynchronous="Y"//"E"//trim("S ")) ! Ok, it is an init expr write(*,*, asynchronous=no) ! { dg-error "must be an initialization expression" } read (*,*, asynchronous="Y"//"e"//trim("S ")) read (*,*, asynchronous=no) ! { dg-error "must be an initialization expression" } end