diff options
Diffstat (limited to 'test/Preprocessor/header_is_main_file.c')
-rw-r--r-- | test/Preprocessor/header_is_main_file.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Preprocessor/header_is_main_file.c b/test/Preprocessor/header_is_main_file.c new file mode 100644 index 000000000000..03ade13ff333 --- /dev/null +++ b/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 |