Debian Codegraph @

clang/test/CXX/expr/expr.prim/expr.prim.lambda/p4.mm

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