aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/missing-header-5.c
blob: aa36c686d83458a47c58cc9219b2c973f8de90cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR preprocessor/80753 */
/* { dg-do compile } */
/* { dg-options "" } */

#if __has_include("nonexistent.h")
# error
#endif

#include "nonexistent.h"

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

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