diff options
author | Anders Carlsson <andersca@mac.com> | 2009-10-19 18:28:22 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-10-19 18:28:22 +0000 |
commit | 0999aafda58ecd37709199dc6c4430ba53e7ae6a (patch) | |
tree | f34ed0c6b2ed37053821b764b732fb8deb0b9a36 /clang/test/CodeGenCXX/references.cpp | |
parent | 0ed889521be2f4ca459d08ef8b8b6a0711412e07 (diff) | |
download | bcm5719-llvm-0999aafda58ecd37709199dc6c4430ba53e7ae6a.tar.gz bcm5719-llvm-0999aafda58ecd37709199dc6c4430ba53e7ae6a.zip |
Handle emitting the assignment operator when the lhs is a reference. Fixes PR5227.
llvm-svn: 84518
Diffstat (limited to 'clang/test/CodeGenCXX/references.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/references.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/references.cpp b/clang/test/CodeGenCXX/references.cpp index 682aab310d0..8e0e1cbe84e 100644 --- a/clang/test/CodeGenCXX/references.cpp +++ b/clang/test/CodeGenCXX/references.cpp @@ -130,3 +130,9 @@ namespace T { } } +// PR5227. +namespace PR5227 { +void f(int &a) { + (a = 10) = 20; +} +} |