xref: /llvm-project/clang/test/SemaCXX/lambda-as-default-parameter.cpp (revision 9b50a88853cc5df4fcdcb56a2ea57f5db4b1978b)
1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
2 
3 struct a; // expected-note {{forward declaration of 'a'}} \
4              expected-note {{forward declaration of 'a'}}
__anona45dc3800102null5 void b(a c = [] { return c; }); // expected-error {{initialization of incomplete type 'a'}} \
6                                    expected-error {{variable has incomplete type 'a'}}
7