[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaCXX / lambda-as-default-parameter.cpp
blob1f07a7f5644b7ca9ac4816e58b0b4bd8391e2a77
1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
3 struct a; // expected-note {{forward declaration of 'a'}} \
4 expected-note {{forward declaration of 'a'}}
5 void b(a c = [] { return c; }); // expected-error {{initialization of incomplete type 'a'}} \
6 expected-error {{variable has incomplete type 'a'}}