// RUN: %clang_cc1 -fsyntax-only -verify %s
// Decl annotations.
void ;
void ;
auto lambda = ;
void ; // expected-error {{attribute only applies to output parameters}}
void ; // expected-error {{'acquire_handle' attribute takes one argument}}
void ; // expected-error {{attribute requires a string}}
void ; // expected-error {{'acquire_handle' attribute takes one argument}}
int ; // expected-warning {{'release_handle' attribute only applies to parameters}}
int ; // expected-warning {{'use_handle' attribute only applies to parameters}}
int a ; // expected-warning {{'acquire_handle' attribute only applies to functions, typedefs, and parameters}}
int ; // expected-warning {{'acquire_handle' attribute only applies to functions, typedefs, and parameters}}
// Type annotations.
auto lambdat =
-> int ;
int ta; // expected-warning {{'acquire_handle' attribute only applies to functions, typedefs, and parameters}}
int ; // expected-error {{'acquire_handle' attribute takes one argument}}
// Typedefs.
typedef int ;