diff options
author | Anders Carlsson <andersca@mac.com> | 2009-09-15 16:36:17 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-09-15 16:36:17 +0000 |
commit | 8c12506ea0e9d2500f59c9865ff05ebdbae77f49 (patch) | |
tree | 3bcc199ab7e3452576c8f1610639c30860d66e63 /test/CodeGenCXX/conditional-expr-lvalue.cpp | |
parent | 6fcec8b58d0571866fcb162db947b029cc539ec4 (diff) |
Add test case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81868 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/conditional-expr-lvalue.cpp')
-rw-r--r-- | test/CodeGenCXX/conditional-expr-lvalue.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGenCXX/conditional-expr-lvalue.cpp b/test/CodeGenCXX/conditional-expr-lvalue.cpp new file mode 100644 index 0000000000..7b3233a5be --- /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; +} |