[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / cxx-condition.cpp
blob5aa0c5e294f1a7e724ba45de5668dfd38a0ba96c
1 // RUN: %clang_cc1 -emit-llvm %s -o %t
3 void f() {
4 int a;
5 if (int x=a) ++a; else a=x;
6 while (int x=a) ++a;
7 for (; int x=a; --a) ;
8 switch (int x=0) { }