re PR libfortran/33079 (Optional empty strings do not appear to be 'PRESENT')
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Fri, 17 Aug 2007 13:09:23 +0000 (13:09 +0000)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Fri, 17 Aug 2007 13:09:23 +0000 (13:09 +0000)
commit000007c53553607813c99368b67c2691bf11eab9
tree13fdeb4ff7ed9cef89a72af1fccc8442c308d49d
parent5d39d00bb989107b4bf19311d19eaffc9bc6bf03
re PR libfortran/33079 (Optional empty strings do not appear to be 'PRESENT')

PR fortran/33079

* intrinsics/string_intrinsics.c (string_trim, string_minmax): Fix
the zero-length result case.

* gfortran.dg/zero_length_2.f90: New test.

From-SVN: r127584
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/zero_length_2.f90 [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/intrinsics/string_intrinsics.c