This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How to test for duplicate error messages
- From: "Giovanni Bajo" <giovannibajo at libero dot it>
- To: "Volker Reichelt" <reichelt at igpm dot rwth-aachen dot de>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Tue, 30 Nov 2004 02:52:59 +0100
- Subject: Re: How to test for duplicate error messages
- References: <200411291414.iATEEPBN029704@relay.rwth-aachen.de>
Volker Reichelt <reichelt@igpm.rwth-aachen.de> wrote:
> How do I test that an error mesage isn't emitted twice
> (like in g++.dg/parse/dtor2.C )?
I don't think it is possible with the current framework.
> I could only find g++.dg/other/error8.C which isn't working as
> expected IMHO. The last three lines read
>
> // The duplicated error messages are xfailed for now (tracked in
> the PR) // { dg-bogus "" "duplicate error messages" { target *-*-*
> } 8 } // { dg-bogus "" "duplicate error messages" { target *-*-* }
> 9 }
>
> But
> * the tests do PASS (it's not an XPASS!)
They used to not pass.
> * the PR was closed
Because Mark fixed the bug, and converted the xfails into targets to disable
them. Then he forgot to remove the comment line which is misguiding.
> * trying to copy such a line to g++.dg/parse/dtor2.C didn't work
> (I got PASS although there's a duplicate message).
I don't think it ever worked. I added error8.C, and probably I was not
realizing that it was not doing what I thought it was doing.
Giovanni Bajo