[cfe-commits] r81868 - /cfe/trunk/test/CodeGenCXX/conditional-expr-lvalue.cpp
Anders Carlsson
andersca at mac.com
Tue Sep 15 09:36:17 PDT 2009
Author: andersca
Date: Tue Sep 15 11:36:17 2009
New Revision: 81868
URL: http://llvm.org/viewvc/llvm-project?rev=81868&view=rev
Log:
Add test case.
Added:
cfe/trunk/test/CodeGenCXX/conditional-expr-lvalue.cpp
Added: cfe/trunk/test/CodeGenCXX/conditional-expr-lvalue.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/conditional-expr-lvalue.cpp?rev=81868&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenCXX/conditional-expr-lvalue.cpp (added)
+++ cfe/trunk/test/CodeGenCXX/conditional-expr-lvalue.cpp Tue Sep 15 11:36:17 2009
@@ -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;
+}
More information about the cfe-commits
mailing list