Reset branch to trunk.
[official-gcc.git] / trunk / gcc / testsuite / gcc.dg / cpp / missing-sysheader-MD.c
blobe1324af25cc5159aae046c2245d57218f2005dc5
1 /* Test that missing system headers are fatal errors with -MD. PR 28435. */
2 /* { dg-do compile } */
3 /* { dg-options "-MD" } */
5 #include <nonexistent.h>
6 /* { dg-message "nonexistent.h" "" { target *-*-* } 0 } */
7 /* { dg-message "terminated" "" { target *-*-* } 0 } */
9 /* This declaration should not receive any diagnostic. */
10 foo bar;