/external/clang/test/SemaCXX/ |
D | dllexport.cpp | 19 __declspec(dllexport) typedef int typedef1; // expected-warning{{'dllexport' attribute only applies… 20 typedef __declspec(dllexport) int typedef2; // expected-warning{{'dllexport' attribute only applies… 21 typedef int __declspec(dllexport) typedef3; // expected-warning{{'dllexport' attribute only applies… 22 typedef __declspec(dllexport) void (*FunTy)(); // expected-warning{{'dllexport' attribute only appl… 23 enum __declspec(dllexport) Enum {}; // expected-warning{{'dllexport' attribute only applies to vari… 25 …enum class __declspec(dllexport) EnumClass {}; // expected-warning{{'dllexport' attribute only app… 35 __declspec(dllexport) extern int ExternGlobalDecl; 38 __declspec(dllexport) int GlobalDef; 41 __declspec(dllexport) int GlobalInit1 = 1; 42 int __declspec(dllexport) GlobalInit2 = 1; [all …]
|
D | dllimport.cpp | 18 __declspec(dllimport) typedef int typedef1; // expected-warning{{'dllimport' attribute only applies… 19 typedef __declspec(dllimport) int typedef2; // expected-warning{{'dllimport' attribute only applies… 20 typedef int __declspec(dllimport) typedef3; // expected-warning{{'dllimport' attribute only applies… 21 typedef __declspec(dllimport) void (*FunTy)(); // expected-warning{{'dllimport' attribute only appl… 22 enum __declspec(dllimport) Enum {}; // expected-warning{{'dllimport' attribute only applies to vari… 24 …enum class __declspec(dllimport) EnumClass {}; // expected-warning{{'dllimport' attribute only app… 34 __declspec(dllimport) extern int ExternGlobalDecl; 37 __declspec(dllimport) int GlobalDecl; 42 __declspec(dllimport) extern int ExternGlobalInit = 1; // expected-error{{definition of dllimport d… 43 __declspec(dllimport) int GlobalInit1 = 1; // expected-error{{definition of dllimport data}} [all …]
|
D | declspec-thread.cpp | 4 __thread __declspec(thread) int a; // expected-error {{already has a thread-local storage specifier… 5 __declspec(thread) __thread int b; // expected-error {{already has a thread-local storage specifier… 6 __declspec(thread) int c(); // expected-warning {{only applies to variables}} 7 __declspec(thread) int d; 10 __declspec(thread) int e = foo(); 12 __declspec(thread) int e = foo(); // expected-error {{must be a constant expression}} expected-note… 17 __declspec(thread) HasCtor f; 19 __declspec(thread) HasCtor f; // expected-error {{must be a constant expression}} expected-note {{t… 24 __declspec(thread) HasDtor g; 26 __declspec(thread) HasCtor g; // expected-error {{must be a constant expression}} expected-note {{t… [all …]
|
D | attr-selectany.cpp | 4 __declspec(selectany) void foo() { } // expected-error{{'selectany' can only be applied to data ite… in foo() 6 __declspec(selectany) int x1 = 1; 8 const __declspec(selectany) int x2 = 2; // expected-error{{'selectany' can only be applied to data … 10 extern const __declspec(selectany) int x3 = 3; 13 const __declspec(selectany) int x4 = 4; 16 extern __declspec(selectany) int x5; 18 static __declspec(selectany) int x6 = 2; // expected-error{{'selectany' can only be applied to data… 23 extern __declspec(selectany) int x7; // expected-warning{{attribute declaration must precede defin… 33 __declspec(selectany) X x(1); 36 __declspec(selectany) auto x8 = Internal(); // expected-error {{'selectany' can only be applied to … [all …]
|
D | ms-layout_version.cpp | 3 struct __declspec(layout_version(19)) S {}; 4 enum __declspec(layout_version(19)) E {}; // expected-warning{{'layout_version' attribute only appl… 5 int __declspec(layout_version(19)) I; // expected-warning{{'layout_version' attribute only applies … 6 typedef struct T __declspec(layout_version(19)) U; // expected-warning{{'layout_version' attribute … 7 auto z = []() __declspec(layout_version(19)) { return nullptr; }; // expected-warning{{'layout_vers… in __anon958d53e60102() 9 struct __declspec(layout_version(18)) X {}; // expected-error{{'layout_version' attribute parameter… 10 struct __declspec(layout_version(20)) Y {}; // expected-error{{'layout_version' attribute parameter… 11 struct __declspec(layout_version) Z {}; // expected-error{{attribute takes one argument}}
|
D | MicrosoftExtensions.cpp | 133 extern "C" __declspec(dllimport) void __stdcall CoTaskMemFree(void* pv); 190 __declspec(dllimport) void f(void) { } in f() 194 __declspec(dllimport) void AAA::f2(void) { // expected-error{{dllimport cannot be applied to non-in… in f2() 255 __declspec(property(get=GetV)) int V1; 256 __declspec(property(put=SetV)) int V2; 257 __declspec(property(get=GetV, put=SetV_NotExist)) int V3; 258 __declspec(property(get=GetV_NotExist, put=SetV)) int V4; 259 __declspec(property(get=GetV, put=SetV)) int V5; 281 __declspec(property(get=GetV)) SP1 V; 296 __declspec(property(get=GetV)) int V; [all …]
|
D | ms-empty_bases.cpp | 3 struct __declspec(empty_bases) S {}; 4 enum __declspec(empty_bases) E {}; // expected-warning{{'empty_bases' attribute only applies to cla… 5 int __declspec(empty_bases) I; // expected-warning{{'empty_bases' attribute only applies to classes… 6 typedef struct T __declspec(empty_bases) U; // expected-warning{{'empty_bases' attribute only appli… 7 auto z = []() __declspec(empty_bases) { return nullptr; }; // expected-warning{{'empty_bases' attri… in __anon6de5a2bf0102() 9 struct __declspec(empty_bases(1)) X {}; // expected-error{{'empty_bases' attribute takes no argumen…
|
/external/clang/test/Sema/ |
D | dllexport.c | 7 __declspec(dllexport) typedef int typedef1; // expected-warning{{'dllexport' attribute only applies… 8 typedef __declspec(dllexport) int typedef2; // expected-warning{{'dllexport' attribute only applies… 9 typedef int __declspec(dllexport) typedef3; // expected-warning{{'dllexport' attribute only applies… 10 typedef __declspec(dllexport) void (*FunTy)(); // expected-warning{{'dllexport' attribute only appl… 11 enum __declspec(dllexport) Enum { EnumVal }; // expected-warning{{'dllexport' attribute only applie… 12 struct __declspec(dllexport) Record {}; // expected-warning{{'dllexport' attribute only applies to … 21 __declspec(dllexport) extern int ExternGlobalDecl; 24 __declspec(dllexport) int GlobalDef; 27 __declspec(dllexport) int GlobalInit1 = 1; 28 int __declspec(dllexport) GlobalInit2 = 1; [all …]
|
D | dllimport.c | 7 __declspec(dllimport) typedef int typedef1; // expected-warning{{'dllimport' attribute only applies… 8 typedef __declspec(dllimport) int typedef2; // expected-warning{{'dllimport' attribute only applies… 9 typedef int __declspec(dllimport) typedef3; // expected-warning{{'dllimport' attribute only applies… 10 typedef __declspec(dllimport) void (*FunTy)(); // expected-warning{{'dllimport' attribute only appl… 11 enum __declspec(dllimport) Enum { EnumVal }; // expected-warning{{'dllimport' attribute only applie… 12 struct __declspec(dllimport) Record {}; // expected-warning{{'dllimport' attribute only applies to … 21 __declspec(dllimport) extern int ExternGlobalDecl; 24 __declspec(dllimport) int GlobalDecl; 32 __declspec(dllimport) extern int ExternGlobalInit = 1; // expected-error{{definition of dllimport d… 33 __declspec(dllimport) int GlobalInit1 = 1; // expected-error{{definition of dllimport data}} [all …]
|
/external/clang/test/CodeGenCXX/ |
D | dllexport-members.cpp | 46 __declspec(dllexport) void normalDef(); 47 __declspec(dllexport) void normalInclass() { referencedNonExportedInClass(); } in normalInclass() 48 __declspec(dllexport) void normalInlineDef(); 49 __declspec(dllexport) inline void normalInlineDecl(); 68 __declspec(dllexport) virtual void virtualDef(); 69 __declspec(dllexport) virtual void virtualInclass() {} in virtualInclass() 70 __declspec(dllexport) virtual void virtualInlineDef(); 71 __declspec(dllexport) virtual inline void virtualInlineDecl(); 81 __declspec(dllexport) static void staticDef(); 82 __declspec(dllexport) static void staticInclass() {} in staticInclass() [all …]
|
D | dllexport.cpp | 40 __declspec(dllexport) extern int ExternGlobalDecl; 45 __declspec(dllexport) int GlobalDef; 50 __declspec(dllexport) int GlobalInit1 = 1; 54 int __declspec(dllexport) GlobalInit2 = 1; 59 __declspec(dllexport) extern int GlobalDeclInit; 65 __declspec(dllexport) extern int GlobalRedecl1; 66 __declspec(dllexport) int GlobalRedecl1; 70 __declspec(dllexport) extern int GlobalRedecl2; 75 namespace ns { __declspec(dllexport) int ExternalGlobal; } 79 __declspec(dllexport) auto ExternalAutoTypeGlobal = External(); [all …]
|
D | dllimport.cpp | 42 __declspec(dllimport) extern int ExternGlobalDecl; 48 __declspec(dllimport) int GlobalDecl; 54 __declspec(dllimport) extern int GlobalRedecl1; 55 __declspec(dllimport) extern int GlobalRedecl1; 60 __declspec(dllimport) int GlobalRedecl2a; 61 __declspec(dllimport) int GlobalRedecl2a; 81 __declspec(dllimport) extern int GlobalRedecl3; 87 namespace ns { __declspec(dllimport) int ExternalGlobal; } 90 int __declspec(dllimport) f(); 93 inline int __declspec(dllimport) inlineStaticLocalsFunc() { in inlineStaticLocalsFunc() [all …]
|
D | dllimport-members.cpp | 92 __declspec(dllimport) void normalDef(); // dllimport ignored 93 __declspec(dllimport) void normalDecl(); 94 __declspec(dllimport) void normalInclass() {} in normalInclass() 95 __declspec(dllimport) void normalInlineDef(); 96 __declspec(dllimport) inline void normalInlineDecl(); 124 __declspec(dllimport) virtual void virtualDef(); // dllimport ignored 125 __declspec(dllimport) virtual void virtualDecl(); 126 __declspec(dllimport) virtual void virtualInclass() {} in virtualInclass() 127 __declspec(dllimport) virtual void virtualInlineDef(); 128 __declspec(dllimport) virtual inline void virtualInlineDecl(); [all …]
|
/external/clang/test/CodeGen/ |
D | dllexport.c | 14 __declspec(dllexport) extern int ExternGlobalDecl; 18 __declspec(dllexport) int GlobalDef; 22 __declspec(dllexport) int GlobalInit = 1; 26 __declspec(dllexport) extern int GlobalDeclInit; 31 __declspec(dllexport) extern int GlobalRedecl1; 32 __declspec(dllexport) int GlobalRedecl1; 35 __declspec(dllexport) extern int GlobalRedecl2; 48 __declspec(dllexport) void def(void) {} in def() 53 __declspec(dllexport) inline void inlineFunc(void) {} in inlineFunc() 54 __declspec(dllexport) inline void externInlineFunc(void) {} in externInlineFunc() [all …]
|
D | dllimport.c | 21 __declspec(dllimport) extern int ExternGlobalDecl; 26 __declspec(dllimport) int GlobalDecl; 31 __declspec(dllimport) extern int GlobalRedecl1; 32 __declspec(dllimport) extern int GlobalRedecl1; 36 __declspec(dllimport) int GlobalRedecl2; 37 __declspec(dllimport) int GlobalRedecl2; 43 __declspec(dllimport) extern int GlobalRedecl3; 50 __declspec(dllimport) extern int GlobalRedecl4; 56 __declspec(dllimport) extern int GlobalRedecl5; 62 __declspec(dllimport) int GlobalRedecl6; [all …]
|
D | ms-declspecs.c | 3 __declspec(selectany) int x1 = 1; 4 const __declspec(selectany) int x2 = 2; 9 __declspec(selectany) int x3; 10 extern __declspec(selectany) int x4; 14 struct __declspec(align(16)) S { 23 __declspec(naked) void t3() {} in t3() 26 void __declspec(nothrow) t22(); 30 __declspec(noinline) void t2() {} in t2() 33 __declspec(noreturn) void f20_t(void); 36 __declspec(noalias) void noalias_callee(int *x);
|
D | ms-align-tentative.c | 3 char __declspec(align(8192)) x; 6 typedef char __declspec(align(8192)) T; 10 T __declspec(align(8192)) z; 13 int __declspec(align(16)) redef; 14 int __declspec(align(32)) redef = 8; 17 struct __declspec(align(64)) S {
|
/external/clang/test/Parser/ |
D | MicrosoftExtensions.cpp | 47 struct __declspec(uuid(L"00000000-0000-0000-1234-000000000047")) uuid_attr_bad1 { };// expected-err… 48 struct __declspec(uuid(3)) uuid_attr_bad2 { };// expected-error {{'uuid' attribute requires a strin… 49 struct __declspec(uuid("0000000-0000-0000-1234-0000500000047")) uuid_attr_bad3 { };// expected-erro… 50 struct __declspec(uuid("0000000-0000-0000-Z234-000000000047")) uuid_attr_bad4 { };// expected-error… 51 struct __declspec(uuid("000000000000-0000-1234-000000000047")) uuid_attr_bad5 { };// expected-error… 53 __declspec(uuid("000000A0-0000-0000-C000-000000000046")) int i; // expected-warning {{'uuid' attrib… 55 struct __declspec(uuid("000000A0-0000-0000-C000-000000000046")) 59 struct __declspec(uuid("000000A0-0000-0000-C000-000000000049")) 117 struct __declspec(uuid("000000A0-0000-0000-C000-000000000049")) late_defined_uuid; 124 struct __declspec(uuid("{12345678-1234-1234-1234-1234567890aB}")) uuid; [all …]
|
D | MicrosoftExtensions.c | 6 extern __declspec(dllimport) void __stdcall VarR4FromDec(void); 7 __declspec(deprecated) __declspec(deprecated) char * __cdecl ltoa( long _Val, char * _DstBuf, int _… 8 __declspec(safebuffers) __declspec(noalias) __declspec(restrict) void * __cdecl xxx(void *_Memory);… 44 enum __declspec(deprecated) E2 { i, j, k }; /* expected-note {{'E2' has been explicitly marked depr… 45 __declspec(deprecated) enum E3 { a, b, c } e; /* expected-note {{'e' has been explicitly marked dep… 67 struct __declspec(frobble) S1 {}; /* expected-warning {{__declspec attribute 'frobble' is not suppo… 68 struct __declspec(12) S2 {}; /* expected-error {{__declspec attributes must be an identifier or str… 69 struct __declspec("testing") S3 {}; /* expected-warning {{__declspec attribute '"testing"' is not s… 73 __declspec(deprecated()) void dep_func_test(void); /* expected-error {{parentheses must be omitted … 74 __declspec(deprecated) void dep_func_test2(void); [all …]
|
/external/clang/test/Layout/ |
D | ms-x86-pack-and-align.cpp | 18 __declspec(align(4)) long long a; 188 __declspec(align(32)) char : 1; 223 __declspec(align(32)) char : 1; 258 __declspec(align(32)) char : 1; 292 struct __declspec(align(16)) D0 { char a; }; 324 struct JB { __declspec(align(4)) char a; }; 352 struct KB : KA { __declspec(align(2)) char a; }; 374 __declspec(align(256)) int Field; 394 __declspec(align(256)) int Field; 416 struct __declspec(align(8)) RB0 { [all …]
|
D | ms-x86-empty-virtual-base.cpp | 8 struct __declspec(align(8)) B0 { B0() {printf("B0 : %3d\n", ((int)(__SIZE_TYPE__)this)&0xfff);} }; in B0() 9 struct __declspec(align(8)) B1 { B1() {printf("B1 : %3d\n", ((int)(__SIZE_TYPE__)this)&0xfff);} }; in B1() 10 struct __declspec(align(8)) B2 { B2() {printf("B2 : %3d\n", ((int)(__SIZE_TYPE__)this)&0xfff);} }; in B2() 11 struct __declspec(align(8)) B3 { B3() {printf("B3 : %3d\n", ((int)(__SIZE_TYPE__)this)&0xfff);} }; in B3() 12 struct __declspec(align(8)) B4 { B4() {printf("B4 : %3d\n", ((int)(__SIZE_TYPE__)this)&0xfff);} }; in B4() 20 struct __declspec(align(16)) D0 { D0() {printf("D0 : %3d\n", ((int)(__SIZE_TYPE__)this)&0xfff);} vi… in f() 287 __declspec(align(32)) int a; 314 struct __declspec(align(32)) J : virtual B0, virtual B1, virtual B2, virtual B3, virtual B4 { 343 __declspec(align(32)) int a; 373 __declspec(align(32)) int a; [all …]
|
D | ms-x86-aligned-tail-padding.cpp | 12 struct __declspec(align(16)) B1 { 17 __declspec(align(16)) int a; 20 struct __declspec(align(16)) B3 { 29 struct __declspec(align(32)) A16 {}; 40 struct __declspec(align(16)) A16X { 42 struct __declspec(align(16)) B0X { 54 struct __declspec(align(16)) B3X { 246 __declspec(align(16)) int a; 313 __declspec(align(16)) int a; 502 struct __declspec(align(16)) DX {
|
/external/clang/test/Rewriter/ |
D | objc-modern-metadata-visibility.mm | 27 // CHECK: __declspec(allocate(".objc_ivar$B")) extern "C" __declspec(dllimport) unsigned long OBJC_… 28 // CHECK: __declspec(allocate(".objc_ivar$B")) extern "C" unsigned long OBJC_IVAR_$_Sub$PrivateIvar; 29 // CHECK: __declspec(allocate(".objc_ivar$B")) extern "C" __declspec(dllimport) unsigned long OBJC_… 31 // CHECK: __declspec(allocate(".objc_ivar$B")) extern "C" __declspec(dllexport) unsigned long int O… 32 // CHECK: __declspec(allocate(".objc_ivar$B")) extern "C" __declspec(dllexport) unsigned long int O… 33 // CHECK: __declspec(allocate(".objc_ivar$B")) extern "C" unsigned long int OBJC_IVAR_$_Sub$Private… 34 // CHECK: extern "C" __declspec(dllimport) struct _class_t OBJC_METACLASS_$_NSObject; 35 // CHECK: extern "C" __declspec(dllexport) struct _class_t OBJC_METACLASS_$_Sub 36 // CHECK: extern "C" __declspec(dllimport) struct _class_t OBJC_CLASS_$_NSObject; 37 // CHECK: extern "C" __declspec(dllexport) struct _class_t OBJC_CLASS_$_Sub [all …]
|
/external/libxml2/include/libxml/ |
D | xmlexports.h | 60 #define XMLPUBFUN __declspec(dllexport) 61 #define XMLPUBVAR __declspec(dllexport) 65 #define XMLPUBVAR __declspec(dllimport) extern 88 #define XMLPUBFUN __declspec(dllexport) 89 #define XMLPUBVAR __declspec(dllexport) extern 93 #define XMLPUBVAR __declspec(dllimport) extern 117 #define XMLPUBFUN __declspec(dllexport) 118 #define XMLPUBVAR __declspec(dllexport) extern 122 #define XMLPUBVAR __declspec(dllimport) extern 141 #define XMLPUBFUN __declspec(dllexport) [all …]
|
/external/compiler-rt/lib/asan/ |
D | asan_win_dynamic_runtime_thunk.cc | 48 __declspec(dllimport) int __asan_should_detect_stack_use_after_return(); 66 __declspec(allocate(".CRT$XTW")) void* before_global_dtors = 0; 67 __declspec(allocate(".CRT$XTY")) void* after_global_dtors = 0; 81 __declspec(allocate(".CRT$XID")) 91 __declspec(dllimport) int __asan_set_seh_filter(); 96 __declspec(allocate(".CRT$XCAB")) int (*__asan_seh_interceptor)() =
|