On Mon, Sep 30, 2019 at 07:41:00PM +0200, Andreas Tobler wrote:
> --- fprintf-2.c       (revision 276292)
> +++ fprintf-2.c       (working copy)
> @@ -1,7 +1,8 @@
>  /* Verify that calls to fprintf don't get eliminated even if their
>     result on success can be computed at compile time (they can fail).
>     The calls can still be transformed into those of other functions.
> -   { dg-skip-if "requires io" { freestanding } } */
> +   { dg-skip-if "requires io" { freestanding } }
> +   { dg-prune-output "(^|\n)(\[^\n\])*warning: warning: \[^\n\]* possibly 
> used unsafely; consider using \[^\n\]*\n" } */ 

I'm worried about that (^|\n) at the start + \n at the end, doesn't it prune
too much then?
Looking at other tests, they dg-prune-output just a few words from a
message, or .*few words.*
So, can you try just
   { dg-prune-output "warning: warning: \[^\n\r\]* possibly used unsafely; 
consider using" } */
or if that doesn't work, with .* at start end end?

        Jakub

Reply via email to