This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [fortran,committed] Adjust pattern count in gfortran.dg/char_cast_1.f90
- From: FX <fxcoudert at gmail dot com>
- To: "Fortran List" <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 19 May 2008 15:27:47 +0100
- Subject: Re: [fortran,committed] Adjust pattern count in gfortran.dg/char_cast_1.f90
- References: <19c433eb0805190401pf40ffd3x2fc4b7117b2272e5@mail.gmail.com>
> rebootstrapping with
> tree-checking enabled to make sure I get the other one right.
Well, the other one is also right: we don't use the exact same types
as before, but everything is compatible (the testcase works, I
manually checked the generated code and a type-checking compiler
doesn't complain). I have thus adjusted the testcase:
2008-05-19 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
* gfortran.dg/char_cast_2.f90: Adjust count in scanning the tree
dump file.
Index: gfortran.dg/char_cast_2.f90
===================================================================
--- gfortran.dg/char_cast_2.f90 (revision 135513)
+++ gfortran.dg/char_cast_2.f90 (working copy)
@@ -19,8 +19,8 @@ contains
return
end function Up
end
-! The sign that all is well is that [S.5][1] appears five times.
+! The sign that all is well is that [S.5][1] appears twice.
! Platform dependent variations are [S$5][1], [__S_5][1], [S___5][1]
! so we count the occurrences of 5][1].
-! { dg-final { scan-tree-dump-times "5\\\]\\\[1\\\]" 5 "original" } }
+! { dg-final { scan-tree-dump-times "5\\\]\\\[1\\\]" 2 "original" } }
! { dg-final { cleanup-tree-dump "original" } }
--
FX Coudert
http://www.homepages.ucl.ac.uk/~uccafco/