PR testsuite/25241
testsuite/
* gcc.dg/pch/valid-1.c: Match each diagnostic with its own directive.
* gcc.dg/pch/valid-2.c: Likewise.
* gcc.dg/pch/valid-3.c: Likewise.
* gcc.dg/pch/warn-1.c: Likewise.
* gcc.dg/pch/valid-4.c: Match a warning instead of an error.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126145
138bc75d-0d04-0410-961f-
82ee72b054a4
2007-06-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
+ PR testsuite/25241
+ * gcc.dg/pch/valid-1.c: Match each diagnostic with its own directive.
+ * gcc.dg/pch/valid-2.c: Likewise.
+ * gcc.dg/pch/valid-3.c: Likewise.
+ * gcc.dg/pch/warn-1.c: Likewise.
+ * gcc.dg/pch/valid-4.c: Match a warning instead of an error.
+
+2007-06-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
+
PR c/4076
* gcc.dg/Wunused-function.c: New.
/* { dg-options "-I. -Winvalid-pch -g" } */
-#include "valid-1.h"/* { dg-error "created with -gnone, but used with -g|No such file|they were invalid" } */
+#include "valid-1.h"/* { dg-warning "created with -gnone, but used with -g" } */
+/* { dg-error "No such file" "" { target *-*-* } 3 } */
+/* { dg-error "they were invalid" "" { target *-*-* } 3 } */
int x;
/* { dg-options "-I. -Winvalid-pch -fexceptions" } */
-#include "valid-2.h"/* { dg-error "settings for -fexceptions do not match|No such file|they were invalid" } */
-
+#include "valid-2.h" /* { dg-warning "settings for -fexceptions do not match" } */
+/* { dg-error "No such file" "" { target *-*-* } 3 } */
+/* { dg-error "they were invalid" "" { target *-*-* } 3 } */
int x;
/* { dg-options "-I. -Winvalid-pch -fno-unit-at-a-time" } */
-#include "valid-3.h"/* { dg-error "settings for -funit-at-a-time do not match|No such file|they were invalid" } */
-
+#include "valid-3.h"/* { dg-warning "settings for -funit-at-a-time do not match" } */
+/* { dg-error "No such file" "" { target *-*-* } 3 } */
+/* { dg-error "they were invalid" "" { target *-*-* } 3 } */
int x;
#include "valid-4.h"
-char * x = "??/"; /* { dg-error "trigraph" } */
+char * x = "??/"; /* { dg-warning "trigraph" } */
#define DEFINED_VALUE 3
-#include "warn-1.h"/* { dg-error "not used because `DEFINED_VALUE' is defined|No such file|they were invalid" } */
+#include "warn-1.h"/* { dg-warning "not used because .DEFINED_VALUE. is defined" } */
+/* { dg-error "No such file" "" { target *-*-* } 5 } */
+/* { dg-error "they were invalid" "" { target *-*-* } 5 } */
+
int main(void)
{