// RUN: %clang_cc1 %s -fsyntax-only -fdouble-square-bracket-attributes -verify
const char *;
void
// More error cases: Prohibit adding the attribute to declarations.
// Different declarations hit different code paths, so they need separate tests.
int *global; // expected-error {{'annotate_type' attribute cannot be applied to a declaration}}
void ; // expected-error {{'annotate_type' attribute cannot be applied to a declaration}}
void ; // expected-error {{'annotate_type' attribute cannot be applied to a declaration}}
; // expected-error {{'annotate_type' attribute cannot be applied to a declaration}}
;