YouCompleteMe/cpp/llvm/tools/clang/test/CodeGen/cxx-condition.cpp

10 lines
163 B
C++
Raw Normal View History

// RUN: %clang_cc1 -emit-llvm %s -o %t
void f() {
int a;
if (int x=a) ++a; else a=x;
while (int x=a) ++a;
for (; int x=a; --a) ;
switch (int x=0) { }
}