+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
/* { 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
/* { 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. */
/* { 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. */
/* { 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. */
/* { 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. */
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 } */
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 } */
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 } */