commit | 8c12506ea0e9d2500f59c9865ff05ebdbae77f49 | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Tue Sep 15 16:36:17 2009 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Tue Sep 15 16:36:17 2009 +0000 |
tree | 3bcc199ab7e3452576c8f1610639c30860d66e63 | |
parent | 6fcec8b58d0571866fcb162db947b029cc539ec4 [diff] [blame] |
Add test case. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81868 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGenCXX/conditional-expr-lvalue.cpp b/test/CodeGenCXX/conditional-expr-lvalue.cpp new file mode 100644 index 0000000..7b3233a --- /dev/null +++ b/test/CodeGenCXX/conditional-expr-lvalue.cpp
@@ -0,0 +1,7 @@ +// RUN: clang-cc -emit-llvm-only %s +void f(bool flag) { + int a = 1; + int b = 2; + + (flag ? a : b) = 3; +}