xref: /llvm-project/clang/test/Preprocessor/header_is_main_file.c (revision e0bde7554ce04ef7af99c69d526882a56f54a928)
1 // RUN: %clang_cc1 -x c-header -ffreestanding -Eonly -verify %s
2 // expected-no-diagnostics
3 
4 #pragma once
5 #include_next "stdint.h"
6 #if !__has_include_next("stdint.h")
7 #error "__has_include_next failed"
8 #endif
9