p4.mm revision ddb5a3926d715ab4354ca36117679e3f4d5d3e21
1// RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify
2
3@interface A
4@end
5
6void test_result_type() {
7  auto l1 = [] () -> A { }; // expected-error{{interface type 'A' cannot be returned by value; did you forget * in 'A'?}}
8}
9