aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/conditional-expr-lvalue.cpp
blob: 7b3233a5bed07aaa504264f60371c953fcbf069e (plain) (blame)
1
2
3
4
5
6
7
// RUN: clang-cc -emit-llvm-only %s
void f(bool flag) {
  int a = 1;
  int b = 2;
  
  (flag ? a : b) = 3;
}