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
/
PCH
/
for-loop-init-ternary-operator-statement.cpp
blob
8bce3e8eeb3c4130a9c8b6cf8e6df5d170fa6f2f
1
// RUN: %clang_cc1 -emit-pch -o %t %s
2
// RUN: %clang_cc1 -x ast -ast-print %t | FileCheck %s
3
4
int
f
() {
5
// CHECK: for (int i = 0; int x = i < 2 ? 1 : 0; i++) {
6
for
(
int
i
=
0
;
int
x
=
i
<
2
?
1
:
0
;
i
++) {
7
return
x
;
8
}
9
return
0
;
10
}
11