]> granicus.if.org Git - clang/commitdiff
Add test case.
authorAnders Carlsson <andersca@mac.com>
Tue, 15 Sep 2009 16:36:17 +0000 (16:36 +0000)
committerAnders Carlsson <andersca@mac.com>
Tue, 15 Sep 2009 16:36:17 +0000 (16:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81868 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/conditional-expr-lvalue.cpp [new file with mode: 0644]

diff --git a/test/CodeGenCXX/conditional-expr-lvalue.cpp b/test/CodeGenCXX/conditional-expr-lvalue.cpp
new file mode 100644 (file)
index 0000000..7b3233a
--- /dev/null
@@ -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;
+}