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