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