aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/expr.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-08-18 00:08:27 +0000
committerChris Lattner <sabre@nondot.org>2010-08-18 00:08:27 +0000
commitd7241c77d388f798c5db29848396109ea1aa83d2 (patch)
tree3a3b60037535de4c821e8def0741ce2449554b73 /test/CodeGenCXX/expr.cpp
parent5c12c7bde7e39758fb127ac7089ac88097408e8e (diff)
Fix PR7889 by generalizing some over specialized code. There is no
reason that this should be limited to simple lvalues. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111331 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/expr.cpp')
-rw-r--r--test/CodeGenCXX/expr.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGenCXX/expr.cpp b/test/CodeGenCXX/expr.cpp
index 26bda055b3..775169d957 100644
--- a/test/CodeGenCXX/expr.cpp
+++ b/test/CodeGenCXX/expr.cpp
@@ -18,3 +18,13 @@ void test2() { ++a+=10; }
// PR7892
int test3(const char*);
int test3g = test3(__PRETTY_FUNCTION__);
+
+
+// PR7889
+struct test4A {
+ int j : 2;
+};
+int test4() {
+ test4A a;
+ (a.j = 2) = 3;
+}