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

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

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