[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Sema / embed_compound_literal.c
blob7ba6fd8e649683ecc5fc34f9125121ab40007b97
1 // RUN: %clang_cc1 -std=c23 -fsyntax-only -verify %s
2 // RUN: %clang_cc1 -fsyntax-only -verify -x c++ -Wno-c23-extensions %s
3 // expected-no-diagnostics
5 char *p1 = (char[]){
6 #embed __FILE__
7 };
9 int *p2 = (int[]){
10 #embed __FILE__
13 int *p3 = (int[30]){
14 #embed __FILE__ limit(30)