// RUN: %clang_cc1 -fsyntax-only -verify %s
int ;
// expected-error {{'warning' attribute takes one argument}}
int
;
int ; // expected-error {{'warning' attribute only applies to functions}}
int
// expected-error {{'warning' attribute requires a string}}
int
;
int ;
int ;
int
// expected-error {{'error' and 'warning' attributes are not compatible}}
int
;
// expected-note@-3 {{conflicting attribute is here}}
/*
* Note: we differ from GCC here; rather than support redeclarations that add
* or remove this fn attr, we diagnose such differences.
*/
void ; // expected-note {{previous declaration is here}}
void ; // expected-error {{'warning' attribute does not appear on the first declaration}}