commit | 160e635ba694198ac1d7c7a7016a63bd626ebff5 | [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 | efb773fadc368e0a52bbd2ba84dd44de24761574 | |
parent | 1450adbbf966d7680432611a7780b02ba4c6e87d [diff] [blame] |
Add test case. llvm-svn: 81868
diff --git a/clang/test/CodeGenCXX/conditional-expr-lvalue.cpp b/clang/test/CodeGenCXX/conditional-expr-lvalue.cpp new file mode 100644 index 0000000..7b3233a --- /dev/null +++ b/clang/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; +}