From: Jerry DeLisle Date: Sun, 5 Mar 2006 18:00:22 +0000 (+0000) Subject: re PR fortran/26554 ([gfortran] incorrect behaviour when reading a logical variable... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=68c9b7d60a71b8ab9e0ebe692f74aedb61a95af1;p=gcc.git re PR fortran/26554 ([gfortran] incorrect behaviour when reading a logical variable from a string) 2006-03-05 Jerry DeLisle PR libgfortran/26554 * gfortran.dg/read_logical.f90: New test. From-SVN: r111739 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7d4882401ce..e6f9d5e4df9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2006-03-05 Jerry DeLisle + + PR libgfortran/26554 + * gfortran.dg/read_logical.f90: New test. + 2006-03-04 Laurent GUERBY * ada/acats/norun.lst: cdd2a03 now passes. diff --git a/gcc/testsuite/gfortran.dg/read_logical.f90 b/gcc/testsuite/gfortran.dg/read_logical.f90 new file mode 100644 index 00000000000..1e74c8e1a1b --- /dev/null +++ b/gcc/testsuite/gfortran.dg/read_logical.f90 @@ -0,0 +1,16 @@ +! { dg-do run } +! PR 26554 : Test logical read from string. Test case derived from PR. +! Submitted by Jerry DeLisle . +program bug + implicit none + character*30 :: strg + logical l + l = .true. + strg = "false" + read (strg,*) l + if (l) call abort() + strg = "true" + read (strg,*) l + if (.not.l) call abort() + end + \ No newline at end of file