This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
how to test multiple warnings?
- From: "Manuel LÃpez-IbÃÃez" <lopezibanez at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 30 Nov 2006 19:25:47 +0000
- Subject: how to test multiple warnings?
Hi,
PR19978 reports that some overflow warnings are emitted multiple
times. Like for example,
test.c:6: warning: integer overflow in expression
test.c:6: warning: integer overflow in expression
test.c:6: warning: integer overflow in expression
The current testsuite will match any number of those to a single {
dg-warning }. I don't know whether this is a known limitation, a bug
on the testsuite or it just needs some magic.
How could I test that exactly one warning was emitted?
Cheers,
Manuel