llvm-for-llvmta/tools/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p4.mm

9 lines
225 B
Plaintext
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify
@interface A
@end
void test_result_type() {
auto l1 = [] () -> A { }; // expected-error{{interface type 'A' cannot be returned by value; did you forget * in 'A'?}}
}