freebsd-dev/test/CodeGenCXX/conditional-expr-lvalue.cpp
2009-10-14 18:03:49 +00:00

8 lines
109 B
C++

// RUN: clang-cc -emit-llvm-only %s
void f(bool flag) {
int a = 1;
int b = 2;
(flag ? a : b) = 3;
}