diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2013-06-14 21:14:10 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2013-06-14 21:14:10 +0000 |
commit | 31a5bcc24ea1145de4c9470f6b803f4decf27c87 (patch) | |
tree | 900b98e9734fe2e7137413a45c43f0901a612e89 /clang/test/CXX/expr/expr.prim/expr.prim.lambda/p4.mm | |
parent | ab2436ee832df6728941b7af247b2f6a20ec0285 (diff) | |
download | bcm5719-llvm-31a5bcc24ea1145de4c9470f6b803f4decf27c87.tar.gz bcm5719-llvm-31a5bcc24ea1145de4c9470f6b803f4decf27c87.zip |
Unify return type checking for functions and ObjC methods. Move all the
random checks for ObjC object return types to SemaType.cpp.
Fixes issue with ObjC method type checking reported on cfe-dev.
llvm-svn: 184006
Diffstat (limited to 'clang/test/CXX/expr/expr.prim/expr.prim.lambda/p4.mm')
-rw-r--r-- | clang/test/CXX/expr/expr.prim/expr.prim.lambda/p4.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p4.mm b/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p4.mm index 0126e23a74a..92c62904d57 100644 --- a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p4.mm +++ b/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p4.mm @@ -4,5 +4,5 @@ @end void test_result_type() { - auto l1 = [] () -> A { }; // expected-error{{non-pointer Objective-C class type 'A' in lambda expression result}} + auto l1 = [] () -> A { }; // expected-error{{interface type 'A' cannot be returned by value; did you forget * in 'A'?}} } |