// RUN: clang -fsyntax-only -verify %s

// CC qualifier can be applied only to functions
int __attribute__((stdcall)) var1; // expected-warning{{'stdcall' attribute only applies to function types}}
int __attribute__((fastcall)) var2; // expected-warning{{'fastcall' attribute only applies to function types}}

// Different CC qualifiers are not compatible
void __attribute__((stdcall, fastcall)) foo3(); // expected-error{{stdcall and fastcall attributes are not compatible}}

// FIXME: Something went wrong recently and diagnostics is not generated anymore
void __attribute__((stdcall)) foo4();
void __attribute__((fastcall)) foo4();

// RUN: clang -fsyntax-only -verify %s

// CC qualifier can be applied only to functions
int __attribute__((stdcall)) var1; // expected-warning{{'stdcall' attribute only applies to function types}}
int __attribute__((fastcall)) var2; // expected-warning{{'fastcall' attribute only applies to function types}}

// Different CC qualifiers are not compatible
void __attribute__((stdcall, fastcall)) foo3(); // expected-error{{stdcall and fastcall attributes are not compatible}}
void __attribute__((stdcall)) foo4();
void __attribute__((fastcall)) foo4(); // expected-error{{fastcall and stdcall attributes are not compatible}}

Complete the test after adding handling of merged attributes on decls.
Complete the test after adding handling of merged attributes on decls.

git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@61438 91177308-0d34-0410-b5e6-96231b3b80d8
