[clang-format] Rename ExportBlockIndentation -> IndentExportBlock (#123493)
[llvm-project.git] / clang / test / Preprocessor / embed_ext_compat_diags.c
blob74f24176d9ccabca37e717f475550aa35fb87ea0
1 // RUN: %clang_cc1 -std=c23 %s -fsyntax-only --embed-dir=%S/Inputs -verify=none -pedantic
2 // RUN: %clang_cc1 -std=c23 %s -fsyntax-only --embed-dir=%S/Inputs -verify=compat -Wpre-c23-compat
3 // RUN: %clang_cc1 -std=c17 %s -fsyntax-only --embed-dir=%S/Inputs -verify=ext -pedantic
4 // RUN: %clang_cc1 -x c++ %s -fsyntax-only --embed-dir=%S/Inputs -verify=cxx -pedantic
5 // none-no-diagnostics
7 #if __has_embed("jk.txt")
9 const char buffer[] = {
10 #embed "jk.txt" /* compat-warning {{#embed is incompatible with C standards before C23}}
11 ext-warning {{#embed is a C23 extension}}
12 cxx-warning {{#embed is a Clang extension}}
15 #endif