[Bug testsuite/25241] DejaGNU does not distinguish between errors and warnings

manu at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Mar 1 21:36:00 GMT 2007



------- Comment #23 from manu at gcc dot gnu dot org  2007-03-01 21:36 -------
Another issue that I am not sure how to fix.
Janis, could you take a look at this? 

Testcase gcc/testsuite/gcc.dg/20041213-1.c is like:

/* { dg-do compile } */
/* test redeclarations with void and implicit int */
extern foo1(); /* { dg-error "previous declaration" } */
extern void foo1(); /* { dg-error "conflicting types" } */

and it generates output as:

/home/manuel/src/trunk/gcc/testsuite/gcc.dg/20041213-1.c:4: error: conflicting
types for 'foo1'
/home/manuel/src/trunk/gcc/testsuite/gcc.dg/20041213-1.c:3: error: previous
declaration of 'foo1' was here


However, the patch above fails at that test. The verbose output of running the
test prints:

Testing gcc.dg/20041213-1.c
process-message:
{:3: ERROR {error:[^
]*previous declaration} {}}
process-message:
{:3: ERROR {error:[^
]*previous declaration} {}} {:4: ERROR {error:[^
]*conflicting types} {}}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25241



More information about the Gcc-bugs mailing list