xref: /llvm-project/clang/test/Parser/gh48527.cpp (revision c724ac9330cb77d9557178fbe3893485264376d9)
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 
main()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 '}'}}
11