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
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}}