// RUN: %clang_cc1 -fsyntax-only -verify %s
// Don't crash.
structg{
j;// expected-error {{a type specifier is required for all declarations}}
};voidcaptures_invalid_type(){
g child;auto q =[child]{};constint n =sizeof(q);}voidcaptures_invalid_array_type(){
g child[100];auto q =[child]{};constint n =sizeof(q);}intpr43080(inti){// expected-note {{declared here}}
return[]{// expected-note {{begins here}} expected-note 2 {{capture 'i' by}} expected-note 2 {{default capture by}}
returnsizeof i <
i;// expected-error {{variable 'i' cannot be implicitly captured in a lambda with no capture-default specified}}
}();}