aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-10-19 18:28:22 +0000
committerAnders Carlsson <andersca@mac.com>2009-10-19 18:28:22 +0000
commit86aa0cdfd5aa7b099efbcd612a014d1b5f0ff799 (patch)
treeff070cc8b76e27bbc7df81679aff813f50da53b0 /test
parentda921fd19fd496494365f9f2325c338e66216709 (diff)
Handle emitting the assignment operator when the lhs is a reference. Fixes PR5227.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84518 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGenCXX/references.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGenCXX/references.cpp b/test/CodeGenCXX/references.cpp
index 682aab310d..8e0e1cbe84 100644
--- a/test/CodeGenCXX/references.cpp
+++ b/test/CodeGenCXX/references.cpp
@@ -130,3 +130,9 @@ namespace T {
}
}
+// PR5227.
+namespace PR5227 {
+void f(int &a) {
+ (a = 10) = 20;
+}
+}