commit | 0999aafda58ecd37709199dc6c4430ba53e7ae6a | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Mon Oct 19 18:28:22 2009 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Mon Oct 19 18:28:22 2009 +0000 |
tree | f34ed0c6b2ed37053821b764b732fb8deb0b9a36 | |
parent | 0ed889521be2f4ca459d08ef8b8b6a0711412e07 [diff] [blame] |
Handle emitting the assignment operator when the lhs is a reference. Fixes PR5227. llvm-svn: 84518
diff --git a/clang/test/CodeGenCXX/references.cpp b/clang/test/CodeGenCXX/references.cpp index 682aab3..8e0e1cb 100644 --- a/clang/test/CodeGenCXX/references.cpp +++ b/clang/test/CodeGenCXX/references.cpp
@@ -130,3 +130,9 @@ } } +// PR5227. +namespace PR5227 { +void f(int &a) { + (a = 10) = 20; +} +}