This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]