commit | 5e5783180acb42c9d9b1be2838370ea5930a2a8b | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Tue May 26 02:03:20 2009 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Tue May 26 02:03:20 2009 +0000 |
tree | 27c3f72c9c46028da56a89779b3a835bdbc9cf5a | |
parent | c6c14d1cd68afcd90d097715296377f15be45210 [diff] [blame] |
A block that returns a reference is an lvalue. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72409 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaCXX/blocks.cpp b/test/SemaCXX/blocks.cpp index 837fb04..9d789bb 100644 --- a/test/SemaCXX/blocks.cpp +++ b/test/SemaCXX/blocks.cpp
@@ -5,3 +5,7 @@ void tovoid_test(int (^f)(int, int)) { tovoid(f); } + +void reference_lvalue_test(int& (^f)()) { + f() = 10; +}