Debian Codegraph @

gcc/testsuite/c-c++-common/missing-header-5.c

raw
1 /* PR preprocessor/80753 */
2 /* { dg-do compile } */
3 /* { dg-options "" } */
4
5 #if __has_include("nonexistent.h")
6 # error
7 #endif
8
9 #include "nonexistent.h"
10
11 /* { dg-message "nonexistent.h" "nonexistent.h" { target *-*-* } 0 } */
12 /* { dg-message "terminated" "terminated" { target *-*-* } 0 } */
13
14 /* This declaration should not receive any diagnostic. */
15 foo bar;