xref: /llvm-project/clang/test/Parser/cxx-declarator-attribute-crash.cpp (revision bd7bce2c8465e9cb36a823846a52c9f553502575)
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 
3 // expected-error@+5{{brackets are not allowed here}}
4 // expected-error@+4{{a type specifier is required for all declarations}}
5 // expected-warning@+3{{unknown attribute 'h' ignored}}
6 // expected-error@+2{{definition of variable with array type}}
7 // expected-error@+1{{expected ';'}}
8 [][[h]]l
9