[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Sema / mingw-macro-qualified-type.c
blob3e10c17f261d8076de43194974bcea9c3cead4fc
1 // Ensure that builtin attributes do not get treated as user defined macros to
2 // be weapped in macro qualified types. This addresses P41852.
3 //
4 // RUN: %clang_cc1 %s -triple i686-w64-mingw32 -fsyntax-only -verify
5 // expected-no-diagnostics
7 typedef int WINBOOL;
8 typedef unsigned int UINT_PTR, *PUINT_PTR;
9 typedef unsigned long long ULONG64, *PULONG64;
10 #define WINAPI __stdcall
11 #define CALLBACK __stdcall
13 typedef WINBOOL(CALLBACK WINAPI *PSYMBOLSERVERCALLBACKPROC)(UINT_PTR action, ULONG64 data, ULONG64 context);