This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug testsuite/30612] Testsuite cannot detect duplicated error/warning messages
- From: "iains at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Apr 2010 18:26:38 -0000
- Subject: [Bug testsuite/30612] Testsuite cannot detect duplicated error/warning messages
- References: <bug-30612-13511@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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?
well, apparently not ; with two comments on one line I get a dg error.
If I put them on consecutive lines..
In the case that both tests pass - all is OK.
in the case that the dg-bogus test fails the second test also fails - I guess
dg-bogus eats output lines like warning does.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30612