freebsd-nq/test/CodeGen/cxx-condition.cpp

10 lines
161 B
C++
Raw Normal View History

2009-06-02 17:58:47 +00:00
// RUN: clang-cc -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) { }
}