summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/cxx-condition.cpp
blob: 5aa0c5e294f1a7e724ba45de5668dfd38a0ba96c (about) (plain)
1
2
3
4
5
6
7
8
9
// 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) { }
}