[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / PCH / for-loop-init-ternary-operator-statement.cpp
blob8bce3e8eeb3c4130a9c8b6cf8e6df5d170fa6f2f
1 // RUN: %clang_cc1 -emit-pch -o %t %s
2 // RUN: %clang_cc1 -x ast -ast-print %t | FileCheck %s
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;
9 return 0;