--- Comment #5 from iains at gcc dot gnu dot org 2010-04-19 18:26 ---
(In reply to comment #4)
> Subject: Re: Testsuite cannot detect duplicated
> error/warning messages
> In this case, I think this will work:
>
> /* { dg-bogus "foo bar" } */ /* { dg-warning "foo" } */
>
> no
--- Comment #4 from lopezibanez at gmail dot com 2010-04-19 17:42 ---
Subject: Re: Testsuite cannot detect duplicated
error/warning messages
>
> is there another way?
In this case, I think this will work:
/* { dg-bogus "foo bar" } */ /* { dg-warning "foo" } */
no?
Cheers,
--- Comment #3 from iains at gcc dot gnu dot org 2010-04-19 16:19 ---
(In reply to comment #2)
> The reason is the regexp that dejagnu uses to match the output
> /usr/share/dejagnu/dg.exp
...
> It would be nice if this were configurable or if we could override it.
yeah - I've just found
--- Comment #2 from manu at gcc dot gnu dot org 2010-04-17 12:56 ---
The reason is the regexp that dejagnu uses to match the output
/usr/share/dejagnu/dg.exp
# Remove all error messages for the line [lindex $i 0]
# in the source file. If we find any, success!
set line
--- Comment #1 from iains at gcc dot gnu dot org 2010-04-17 12:19 ---
It seems that
/* { dg-warning "" "" } */
Is eating all lines where occurs together with the line on which the
warning is declared.
Otherwise, we'd get an excess errors (which would be perfectly fine as a wa