1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++03 -Wno-c++11-extensions %s
2 // RUN: %clang_cc1 -fsyntax-only -verify %s
6 j
; // expected-error {{a type specifier is required for all declarations}}
9 void captures_invalid_type() {
12 const int n
= sizeof(q
);
15 void captures_invalid_array_type() {
18 const int n
= sizeof(q
);
21 int pr43080(int i
) { // expected-note {{declared here}}
22 return [] { // expected-note {{begins here}} expected-note 2 {{capture 'i' by}} expected-note 2 {{default capture by}}
24 i
; // expected-error {{variable 'i' cannot be implicitly captured in a lambda with no capture-default specified}}