repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git]
/
clang
/
test
/
CXX
/
expr
/
expr.prim
/
expr.prim.lambda
/
p4.mm
blob
92c62904d57b2a869af2464eb4955197ffb01ca7
1
// RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify
2
3
@interface A
4
@end
5
6
void test_result_type() {
7
auto l1 = [] () -> A { }; // expected-error{{interface type 'A' cannot be returned by value; did you forget * in 'A'?}}
8
}