stdcall-fastcall.c revision d7d5f0223bd30dfd618762349c6209dd1d5ea3e6
1// RUN: clang-cc -fsyntax-only -verify %s 2 3// CC qualifier can be applied only to functions 4int __attribute__((stdcall)) var1; // expected-warning{{'stdcall' attribute only applies to function types}} 5int __attribute__((fastcall)) var2; // expected-warning{{'fastcall' attribute only applies to function types}} 6 7// Different CC qualifiers are not compatible 8void __attribute__((stdcall, fastcall)) foo3(); // expected-error{{stdcall and fastcall attributes are not compatible}} 9void __attribute__((stdcall)) foo4(); 10void __attribute__((fastcall)) foo4(); // expected-error{{fastcall and stdcall attributes are not compatible}} 11