summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/missing-header-MMD.c
blob: 2c1da30ea33ecf5d38407a667257ac2f924a6eaf (plain)
1
2
3
4
5
6
7
8
9
10
/* Test that missing user 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;