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