1 // RUN: %clang_cc1 -triple i386-mingw32 -fsyntax-only -verify -fms-extensions -Wno-unused-value -Wno-missing-declarations -x objective-c++ %s
4 typedef int (__cdecl
*tptr
)();
5 void (*__fastcall fastpfunc
)();
6 struct __declspec(uuid("00000000-0000-0000-C000-000000000046")) __declspec(novtable
) IUnknown
{};
7 extern __declspec(dllimport
) void __stdcall
VarR4FromDec();
8 __declspec(deprecated
) __declspec(deprecated
) char * __cdecl
ltoa( long _Val
, char * _DstBuf
, int _Radix
);
9 __declspec(noalias
) __declspec(restrict
) void * __cdecl
xxx( void * _Memory
);
10 typedef __w64
unsigned long ULONG_PTR
, *PULONG_PTR
;
11 void * __ptr64
PtrToPtr64(const void *p
)
13 return((void * __ptr64
) (unsigned __int64
) (ULONG_PTR
)p
);
15 void __forceinline
InterlockedBitTestAndSet (long *Base
, long Bit
)
28 __declspec(align(16)) int *buffer
= (int *)_alloca(9);
31 typedef bool (__stdcall __stdcall
*blarg
)(int);
38 typedef enum E
{ e1
};
43 __uuidof(0); // expected-error {{you need to include <guiddef.h> before using the '__uuidof' operator}}
51 unsigned char Data4
[8];
53 struct __declspec(uuid("00000000-0000-0000-3231-000000000046")) A
{ };
54 struct __declspec(uuid("00000000-0000-0000-1234-000000000047")) B
{ };
67 // FIXME, this must not compile
69 // FIXME, this must not compile
73 // FIXME, this must not compile