Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/namelist_88.f90 @ 118:fd00160c1b76
ifdef TARGET_64BIT
author | mir3636 |
---|---|
date | Tue, 27 Feb 2018 15:01:35 +0900 |
parents | 04ced10e8804 |
children | 84e7813d76e9 |
line wrap: on
line source
! { dg-do run } ! PR69668 Error reading namelist opened with DELIM='NONE' program namelist implicit none integer,parameter :: tabsz=10 integer :: i character(len=10),dimension(tabsz) :: tab namelist/tab_nml/tab tab(:)='invalid' ! Create a temporary test namelist file open(unit=23,status='scratch',delim='none') write(23,*) "&tab_nml" write(23,*) "tab(1)='in1'," write(23,*) "tab(2)='in2'" write(23,*) "/" rewind(23) read(unit=23,nml=tab_nml) close(unit=23) if (tab(1).ne.'in1') call abort if (tab(2).ne.'in2') call abort if (any(tab(3:tabsz).ne.'invalid')) call abort end program namelist