No unexpected failures!

Paul Richard Thomas paul.richard.thomas@gmail.com
Sat Oct 13 07:16:00 GMT 2007


Andrew,


On 10/12/07, Andrew Pinski <pinskia@gmail.com> wrote:
> On 10/12/07, Paul Richard Thomas <paul.richard.thomas@gmail.com> wrote:
> > PS I am struggling to get the test
> > ! { dg-final { scan-tree-dump-times "[S.5][1]" 2 "original" } }
> >  to work.  How do I do that?
>
> Try:
> ! { dg-final { scan-tree-dump-times "\\\[S.5\\\]\\\[1\\\]" 2 "original" } }
>
> Basically [] is a regex and then you have to escape it but you have
> escape it twice (for unknown reasons to me really).

Brilliant! Thanks.

I had, of course, escaped it but not enough.

Cheers

Paul



More information about the Fortran mailing list