// RUN: %clang_cc1 %s -verify -fsyntax-only
void ;
extern int g1 ; // expected-warning {{'cleanup' attribute only applies to local variables}}
int g2 ; // expected-warning {{'cleanup' attribute only applies to local variables}}
static int g3 ; // expected-warning {{'cleanup' attribute only applies to local variables}}
void
;
void ;
void ;
void
// This is a manufactured testcase, but gcc accepts it...
void ;
void
void ; // expected-note{{'c5' has been explicitly marked deprecated here}}
void
void
void // expected-warning {{'cleanup' attribute only applies to local variables}}