From: Jerry DeLisle Date: Sat, 3 May 2008 15:14:55 +0000 (+0000) Subject: re PR fortran/33268 (read ('(f3.3)'), a rejected due to the extra (...)) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d18b52aa3b11eb708b69ed13616c95f2db1f6822;p=gcc.git re PR fortran/33268 (read ('(f3.3)'), a rejected due to the extra (...)) 2008-05-03 Jerry DeLisle PR fortran/33268 * gfortran.dg/io_constraints_4.f90: New test. From-SVN: r134901 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 949a3deff4a..3a474546c81 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2008-05-03 Jerry DeLisle + + PR fortran/33268 + * gfortran.dg/io_constraints_4.f90: New test. + 2008-05-01 Simon Baldwin PR bootstrap/36108 diff --git a/gcc/testsuite/gfortran.dg/io_constraints_4.f90 b/gcc/testsuite/gfortran.dg/io_constraints_4.f90 new file mode 100644 index 00000000000..149d31b1631 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/io_constraints_4.f90 @@ -0,0 +1,10 @@ +! { dg-do compile } +! PR33268 [patch,fortran] read ('(f3.3)'), a rejected due to the extra (...) + +write(*,('(a)')) 'Hello' +write (*,'(f8.3)'), 3.14 ! { dg-warning "Comma before i/o item list" } +print ('(a)'), "valid" +read ('(f3.3)'), a +read (*, '(f3.3)'), a ! { dg-warning "Comma before i/o item list" } +write ('(a)'), "invalid" ! { dg-error "Invalid form of WRITE statement" } +end