diff options
Diffstat (limited to 'clang/test/Preprocessor/header_is_main_file.c')
-rw-r--r-- | clang/test/Preprocessor/header_is_main_file.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/header_is_main_file.c b/clang/test/Preprocessor/header_is_main_file.c new file mode 100644 index 00000000000..03ade13ff33 --- /dev/null +++ b/clang/test/Preprocessor/header_is_main_file.c @@ -0,0 +1,8 @@ +// RUN: %clang_cc1 -x c-header -ffreestanding -Eonly -verify %s +// expected-no-diagnostics + +#pragma once +#include_next "stdint.h" +#if !__has_include_next("stdint.h") +#error "__has_include_next failed" +#endif |