// RUN: %clang_cc1 -fsyntax-only -fms-extensions -verify -triple i686-pc-win32 %s
// RUN: %clang_cc1 -fsyntax-only -fms-extensions -verify -triple x86_64-pc-win32 %s
// RUN: %clang_cc1 -x c++ -fsyntax-only -fms-extensions -verify -triple i686-pc-win32 %s
// RUN: %clang_cc1 -x c++ -DEXTERN_C='extern "C"' -fsyntax-only -fms-extensions -verify -triple i686-pc-win32 %s
// expected-no-diagnostics
// expected-note-re@+2 1+ {{forward declaration of '{{(struct )?}}Foo'}}
;
EXTERN_C void __stdcall ;
// expected-error@+2 {{parameter 'p' must have a complete type to use function 'fwd_std' with the stdcall calling convention}}
= &fwd_std;
EXTERN_C void __fastcall ;
// expected-error@+2 {{parameter 'p' must have a complete type to use function 'fwd_fast' with the fastcall calling convention}}
= &fwd_fast;
EXTERN_C void __vectorcall ;
// expected-error@+2 {{parameter 'p' must have a complete type to use function 'fwd_vector' with the vectorcall calling convention}}
= &fwd_vector;
template <typename T> struct TemplateWrapper ;
EXTERN_C void __vectorcall ;
= &tpl_ok;
EXTERN_C void __vectorcall ;
// expected-note@+2 {{requested here}}
= &tpl_fast;