bolt/deps/llvm-18.1.8/clang/test/Parser/gh48527.cpp
2025-02-14 19:21:04 +01:00

10 lines
424 B
C++

// 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 '}'}}