1 // RUN: %clang_cc1 -fsyntax-only -verify %s
5 j
; // expected-error {{C++ requires a type specifier for all declarations}}
8 void captures_invalid_type() {
11 const int n
= sizeof(q
);
14 void captures_invalid_array_type() {
17 const int n
= sizeof(q
);
20 int pr43080(int i
) { // expected-note {{declared here}}
21 return [] { // expected-note {{begins here}} expected-note 2 {{capture 'i' by}} expected-note 2 {{default capture by}}
23 i
; // expected-error {{variable 'i' cannot be implicitly captured in a lambda with no capture-default specified}}