blob: 0126e23a74abb8ebcff547640c1a22cd8b9899f6 (
about) (
plain)
1
2
3
4
5
6
7
8
|
// RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify
@interface A
@end
void test_result_type() {
auto l1 = [] () -> A { }; // expected-error{{non-pointer Objective-C class type 'A' in lambda expression result}}
}
|