Fix PR7889 by generalizing some over specialized code. There is no
reason that this should be limited to simple lvalues.
llvm-svn: 111331
diff --git a/clang/test/CodeGenCXX/expr.cpp b/clang/test/CodeGenCXX/expr.cpp
index 26bda05..775169d 100644
--- a/clang/test/CodeGenCXX/expr.cpp
+++ b/clang/test/CodeGenCXX/expr.cpp
@@ -18,3 +18,13 @@
// PR7892
int test3(const char*);
int test3g = test3(__PRETTY_FUNCTION__);
+
+
+// PR7889
+struct test4A {
+ int j : 2;
+};
+int test4() {
+ test4A a;
+ (a.j = 2) = 3;
+}