repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
Sema
/
embed_compound_literal.c
blob
7ba6fd8e649683ecc5fc34f9125121ab40007b97
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
4
5
char
*
p1
= (
char
[]){
6
#embed __FILE__
7
};
8
9
int
*
p2
= (
int
[]){
10
#embed __FILE__
11
};
12
13
int
*
p3
= (
int
[
30
]){
14
#embed __FILE__ limit(30)
15
};