p4.mm revision 53393f23d8b767f976427a6d45b310bf37dd91c4
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{{non-pointer Objective-C class type 'A' in lambda expression result}}
8}
9