aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Parser/gh48527.cpp
blob: 420c35be37f519145011d3f35bd4a613a0a529a2 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 -fsyntax-only -verify %s

int main() { // expected-note {{to match this '{'}}
    auto a = [](void)__attribute__((b(({ // expected-note {{to match this '('}}
    return 0;
} // expected-error 3 {{expected ')'}} \
  // expected-error {{expected ';' at end of declaration}}
// expected-error@+2 {{expected ')'}}
// expected-error@+1 {{expected body of lambda expression}}
// expected-error {{expected '}'}}