re PR testsuite/25241 ([C++] DejaGNU does not distinguish between errors and warnings)

2007-06-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

	PR testsuite/25241

testsuite/
	* gcc.dg/parm-mismatch-1.c: Use dg-message for notes.
	* gcc.dg/Wfatal.c: Use dg-message for output that is neither a
	warning nor an error.
	* gcc.dg/Wfatal-2.c: Likewise.
	* gcc.dg/Werror-1.c: Likewise.
	* gcc.dg/Werror-5.c: Likewise.
	* gcc.dg/Werror-7.c: Likewise.
	* gcc.dg/Werror-10.c: Likewise.
	* gcc.dg/Werror-11.c: Likewise.

From-SVN: r125543
This commit is contained in:
Manuel López-Ibáñez 2007-06-07 21:01:41 +00:00
parent 46d8fbd1a2
commit 1579e8d235
9 changed files with 25 additions and 12 deletions

View file

@ -1,3 +1,16 @@
2007-06-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR testsuite/25241
* gcc.dg/parm-mismatch-1.c: Use dg-message for notes.
* gcc.dg/Wfatal.c: Use dg-message for output that is neither a
warning nor an error.
* gcc.dg/Wfatal-2.c: Likewise.
* gcc.dg/Werror-1.c: Likewise.
* gcc.dg/Werror-5.c: Likewise.
* gcc.dg/Werror-7.c: Likewise.
* gcc.dg/Werror-10.c: Likewise.
* gcc.dg/Werror-11.c: Likewise.
2007-06-07 Simon Martin <simartin@users.sourceforge.net>
PR c++/30759

View file

@ -1,6 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-Waddress -Wattributes -Werror" } */
/* { dg-warning "warnings being treated as errors" "" {target "*-*-*"} 0 } */
/* { dg-message "warnings being treated as errors" "" {target "*-*-*"} 0 } */
/* This is the first in a series of test cases that test the
interaction between -Wfoo, -Werror, -Werror=foo, and #pragma GCC

View file

@ -1,6 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-Wattributes -Werror" } */
/* { dg-warning "warnings being treated as errors" "" {target "*-*-*"} 0 } */
/* { dg-message "warnings being treated as errors" "" {target "*-*-*"} 0 } */
/* Make sure #pragma can work with -Werror. */

View file

@ -1,6 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-Wattributes -Werror" } */
/* { dg-warning "warnings being treated as errors" "" {target "*-*-*"} 0 } */
/* { dg-message "warnings being treated as errors" "" {target "*-*-*"} 0 } */
/* Make sure #pragma can override -Werror. */

View file

@ -1,6 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-Waddress -Wattributes -Werror" } */
/* { dg-warning "warnings being treated as errors" "" {target "*-*-*"} 0 } */
/* { dg-message "warnings being treated as errors" "" {target "*-*-*"} 0 } */
/* Make sure -Werror turns warnings in to errors. */

View file

@ -1,6 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-Waddress -Werror -Wno-error=address -Wattributes" } */
/* { dg-warning "warnings being treated as errors" "" {target "*-*-*"} 0 } */
/* { dg-message "warnings being treated as errors" "" {target "*-*-*"} 0 } */
/* Make sure -Wno-error= overrides -Werror. */

View file

@ -5,5 +5,5 @@
int i = INT_MAX + 1; /* { dg-error "integer overflow in expression" } */
int k = 1 / 0;
int j = INT_MIN - 1;
/* { dg-warning "being treated as errors" "" { target *-*-* } 0 } */
/* { dg-warning "terminated due to -Wfatal-errors" "" { target *-*-* } 0 } */
/* { dg-message "being treated as errors" "" { target *-*-* } 0 } */
/* { dg-message "terminated due to -Wfatal-errors" "" { target *-*-* } 0 } */

View file

@ -5,7 +5,7 @@
int i = INT_MAX + 1; /* { dg-warning "integer overflow in expression" } */
int k = 1 / 0; /* { dg-error "division by zero" } */
int j = INT_MIN - 1;
/* { dg-warning "terminated due to -Wfatal-errors" "" { target *-*-* } 0 } */
/* { dg-message "terminated due to -Wfatal-errors" "" { target *-*-* } 0 } */

View file

@ -6,13 +6,13 @@
void f0(); /* { dg-error "error: previous declaration of 'f0' was here" } */
void f0(int, ...); /* { dg-error "error: conflicting types for 'f0'" } */
/* { dg-error "note: a parameter list with an ellipsis can't match an empty parameter name list declaration" "note" { target *-*-* } 8 } */
/* { dg-message "note: a parameter list with an ellipsis can't match an empty parameter name list declaration" "note" { target *-*-* } 8 } */
void f1(int, ...); /* { dg-error "error: previous declaration of 'f1' was here" } */
void f1(); /* { dg-error "error: conflicting types for 'f1'" } */
/* { dg-error "note: a parameter list with an ellipsis can't match an empty parameter name list declaration" "note" { target *-*-* } 11 } */
/* { dg-message "note: a parameter list with an ellipsis can't match an empty parameter name list declaration" "note" { target *-*-* } 11 } */
void f2(); /* { dg-error "error: previous declaration of 'f2' was here" } */
void f2(char); /* { dg-error "error: conflicting types for 'f2'" } */
/* { dg-error "note: an argument type that has a default promotion can't match an empty parameter name list declaration" "note" { target *-*-* } 14 } */
/* { dg-message "note: an argument type that has a default promotion can't match an empty parameter name list declaration" "note" { target *-*-* } 14 } */
void f3(char); /* { dg-error "error: previous declaration of 'f3' was here" } */
void f3(); /* { dg-error "error: conflicting types for 'f3'" } */
/* { dg-error "note: an argument type that has a default promotion can't match an empty parameter name list declaration" "note" { target *-*-* } 17 } */
/* { dg-message "note: an argument type that has a default promotion can't match an empty parameter name list declaration" "note" { target *-*-* } 17 } */