summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/missing-sysheader-MMD.c
blob: fb629ae1c3e1ea85d798b05d19ecea011eba08d6 (plain)
1
2
3
4
5
6
7
8
9
10
/* Test that missing system headers are fatal errors with -MMD.  PR 28435.  */
/* { dg-do compile } */
/* { dg-options "-MMD" } */

#include <nonexistent.h>
/* { dg-message "nonexistent.h" "" { target *-*-* } 0 } */
/* { dg-message "terminated" "" { target *-*-* } 0 } */

/* This declaration should not receive any diagnostic.  */
foo bar;