2009-09-20 Chris Demetriou <cgd@google.com>
PR preprocessor/28435:
* gcc.dg/cpp/missing-header-MD.c: Make output checking match
gcc.dg/cpp/missing-header-1.c, and add PR number to test comment.
* gcc.dg/cpp/missing-header-MMD.c: Likewise.
* gcc.dg/cpp/missing-sysheader-MD.c: Likewise.
* gcc.dg/cpp/missing-sysheader-MMD.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151894
138bc75d-0d04-0410-961f-
82ee72b054a4
+2009-09-20 Chris Demetriou <cgd@google.com>
+
+ PR preprocessor/28435:
+ * gcc.dg/cpp/missing-header-MD.c: Make output checking match
+ gcc.dg/cpp/missing-header-1.c, and add PR number to test comment.
+ * gcc.dg/cpp/missing-header-MMD.c: Likewise.
+ * gcc.dg/cpp/missing-sysheader-MD.c: Likewise.
+ * gcc.dg/cpp/missing-sysheader-MMD.c: Likewise.
+
2009-09-19 Adam Nemet <anemet@caviumnetworks.com>
* gcc.target/mips/mips.exp: Add relax-pic-calls
-/* Test that missing user headers are fatal errors with -MD. */
+/* Test that missing user headers are fatal errors with -MD. PR 28435. */
/* { dg-do compile } */
/* { dg-options "-MD" } */
-#include "nonexistent.h" /* { dg-error "nonexistent.h" } */
+#include "nonexistent.h"
+/* { dg-message "nonexistent.h" "" { target *-*-* } 0 } */
/* { dg-message "terminated" "" { target *-*-* } 0 } */
+
+/* This declaration should not receive any diagnostic. */
+foo bar;
-/* Test that missing user headers are fatal errors with -MMD. */
+/* Test that missing user headers are fatal errors with -MMD. PR 28435. */
/* { dg-do compile } */
/* { dg-options "-MMD" } */
-#include "nonexistent.h" /* { dg-error "nonexistent.h" } */
+#include "nonexistent.h"
+/* { dg-message "nonexistent.h" "" { target *-*-* } 0 } */
/* { dg-message "terminated" "" { target *-*-* } 0 } */
+
+/* This declaration should not receive any diagnostic. */
+foo bar;
-/* Test that missing system headers are fatal errors with -MD. */
+/* Test that missing system headers are fatal errors with -MD. PR 28435. */
/* { dg-do compile } */
/* { dg-options "-MD" } */
-#include <nonexistent.h> /* { dg-error "nonexistent.h" } */
+#include <nonexistent.h>
+/* { dg-message "nonexistent.h" "" { target *-*-* } 0 } */
/* { dg-message "terminated" "" { target *-*-* } 0 } */
+
+/* This declaration should not receive any diagnostic. */
+foo bar;
-/* Test that missing system headers are fatal errors with -MMD. */
+/* Test that missing system headers are fatal errors with -MMD. PR 28435. */
/* { dg-do compile } */
/* { dg-options "-MMD" } */
-#include <nonexistent.h> /* { dg-error "nonexistent.h" } */
+#include <nonexistent.h>
+/* { dg-message "nonexistent.h" "" { target *-*-* } 0 } */
/* { dg-message "terminated" "" { target *-*-* } 0 } */
+
+/* This declaration should not receive any diagnostic. */
+foo bar;