[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CodeGenCXX / conditional-expr-lvalue.cpp
blob96aa8b07a664c933bfe72f699546d173b4e1a79a
1 // RUN: %clang_cc1 -emit-llvm-only %s
2 void f(bool flag) {
3 int a = 1;
4 int b = 2;
6 (flag ? a : b) = 3;
9 // PR10756
10 namespace test0 {
11 struct A {
12 A(const A &);
13 A &operator=(const A &);
14 A sub() const;
15 void foo() const;
17 void foo(bool cond, const A &a) {
18 (cond ? a : a.sub()).foo();