summaryrefslogtreecommitdiffstats
path: root/clang/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
commitb1995dffaf60784fd0546bf15ad0d464c480d4e7 (patch)
tree5cb269a145ef0aa1aee713f6de0781a461e56e19 /clang/test/CodeGenCXX/expr.cpp
parent00d5141aefb2abd2fb3d308f3f4ca74b3b134a71 (diff)
downloadbcm5719-llvm-b1995dffaf60784fd0546bf15ad0d464c480d4e7.tar.gz
bcm5719-llvm-b1995dffaf60784fd0546bf15ad0d464c480d4e7.zip
Fix PR7889 by generalizing some over specialized code. There is no
reason that this should be limited to simple lvalues. llvm-svn: 111331
Diffstat (limited to 'clang/test/CodeGenCXX/expr.cpp')
-rw-r--r--clang/test/CodeGenCXX/expr.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/expr.cpp b/clang/test/CodeGenCXX/expr.cpp
index 26bda055b3d..775169d9578 100644
--- a/clang/test/CodeGenCXX/expr.cpp
+++ b/clang/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;
+}
OpenPOWER on IntegriCloud