[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Parser / gh48527.cpp
blob420c35be37f519145011d3f35bd4a613a0a529a2
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 int main() { // expected-note {{to match this '{'}}
4 auto a = [](void)__attribute__((b(({ // expected-note {{to match this '('}}
5 return 0;
6 } // expected-error 3 {{expected ')'}} \
7 // expected-error {{expected ';' at end of declaration}}
8 // expected-error@+2 {{expected ')'}}
9 // expected-error@+1 {{expected body of lambda expression}}
10 // expected-error {{expected '}'}}