// RUN: %clang_cc1 -fsyntax-only -Wno-strict-prototypes -verify -triple i686-apple-darwin10 %s
// CC qualifier can be applied only to functions
int var1; // expected-warning{{'stdcall' only applies to function types; type here is 'int'}}
int var2; // expected-warning{{'fastcall' only applies to function types; type here is 'int'}}
// Different CC qualifiers are not compatible
void ; // expected-error{{fastcall and stdcall attributes are not compatible}}
void ; // expected-note{{previous declaration is here}} expected-warning{{function with no prototype cannot use the stdcall calling convention}}
void ; // expected-error{{function declared 'fastcall' here was previously declared 'stdcall'}}
// rdar://8876096
void ; // expected-error {{not compatible}}
void ; // expected-error {{not compatible}}
void ; // expected-error {{not compatible}}
void ; // expected-error {{not compatible}}
void ; // expected-error {{not compatible}}
void ; // expected-error {{not compatible}}
void ; // expected-error {{not compatible}}
void ; // expected-error {{not compatible}}