This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug testsuite/25241] DejaGNU does not distinguish between errors and warnings
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Mar 2007 21:36:10 -0000
- Subject: [Bug testsuite/25241] DejaGNU does not distinguish between errors and warnings
- References: <bug-25241-1000@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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