// RUN: %clang_cc1 -fsyntax-only -Wno-strict-prototypes -verify -triple x86_64-pc-linux-gnu %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-warning{{'stdcall' calling convention is not supported for this target}} expected-warning {{'fastcall' calling convention is not supported for this target}}
void ; // expected-warning{{'stdcall' calling convention is not supported for this target}}
void ; // expected-warning {{'fastcall' calling convention is not supported for this target}}
// rdar://8876096
void ; // expected-warning{{'fastcall' calling convention is not supported for this target}}
void ; // expected-warning{{'stdcall' calling convention is not supported for this target}} expected-warning {{'fastcall' calling convention is not supported for this target}}
void ; // expected-warning {{'fastcall' calling convention is not supported for this target}}
void ; // expected-warning{{'stdcall' calling convention is not supported for this target}}
void ; // expected-warning{{'stdcall' calling convention is not supported for this target}} expected-warning {{'fastcall' calling convention is not supported for this target}}
void ; // expected-warning {{'fastcall' calling convention is not supported for this target}}
void ; // expected-warning{{'stdcall' calling convention is not supported for this target}}
void ; // expected-warning {{'fastcall' calling convention is not supported for this target}}