blob: 4e938f575fb90aeb64b1b1839d6fc8d78d53f621 [file] [log] [blame]
Anton Korobeynikov7f7bb722008-12-26 00:51:21 +00001// RUN: clang -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}}
Anton Korobeynikov7f7bb722008-12-26 00:51:21 +00009void __attribute__((stdcall)) foo4();
Anton Korobeynikovfceeec92008-12-26 00:52:17 +000010void __attribute__((fastcall)) foo4(); // expected-error{{fastcall and stdcall attributes are not compatible}}