opnsense-src/test/CodeGenCXX/conditional-expr-lvalue.cpp

8 lines
111 B
C++
Raw Normal View History

2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 -emit-llvm-only %s
2009-10-14 14:03:49 -04:00
void f(bool flag) {
int a = 1;
int b = 2;
(flag ? a : b) = 3;
}