// RUN: %clang_cc1 -fsyntax-only -verify -triple x86_64-pc-linux-gnu -Wno-strict-prototypes %s
// CC qualifier can be applied only to functions
int var1; // expected-warning{{'ms_abi' only applies to function types; type here is 'int'}}
int var2; // expected-warning{{'sysv_abi' only applies to function types; type here is 'int'}}
// Different CC qualifiers are not compatible
// FIXME: Should say 'sysv_abi' instead of 'cdecl'
void ; // expected-error{{cdecl and ms_abi attributes are not compatible}}
void ; // expected-note{{previous declaration is here}}
void ; // expected-error{{function declared 'cdecl' here was previously declared 'ms_abi'}}
void ; // expected-error{{cdecl and ms_abi attributes are not compatible}}
void ; // no-error