OSDN Git Service

2010-06-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gfortran.dg / f2003_io_6.f03
1 ! { dg-do run }
2 ! Test case prepared by Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3 ! Test of decimal="comma" in namelist, checks separators
4 implicit none
5 integer :: i
6 real :: a(6) = 0.0
7 character(len=30) :: str = '&nm a = 1,3; 4, 5; 5; 7; /'
8 namelist /nm/ a
9 read(str,nml=nm,decimal='comma')
10 if (any(a.ne.[ 1.3, 4.0, 5.0, 5.0, 7.0, 0.0 ])) call abort
11 end