Lines Matching defs:__declspec

7 __declspec(dllimport) typedef int typedef1; // expected-warning{{'dllimport' attribute only applies to variables and functions}}
8 typedef __declspec(dllimport) int typedef2; // expected-warning{{'dllimport' attribute only applies to variables and functions}}
9 typedef int __declspec(dllimport) typedef3; // expected-warning{{'dllimport' attribute only applies to variables and functions}}
10 typedef __declspec(dllimport) void (*FunTy)(); // expected-warning{{'dllimport' attribute only applies to variables and functions}}
11 enum __declspec(dllimport) Enum { EnumVal }; // expected-warning{{'dllimport' attribute only applies to variables and functions}}
12 struct __declspec(dllimport) Record {}; // expected-warning{{'dllimport' attribute only applies to variables and functions}}
21 __declspec(dllimport) extern int ExternGlobalDecl;
24 __declspec(dllimport) int GlobalDecl;
32 __declspec(dllimport) extern int ExternGlobalInit = 1; // expected-error{{definition of dllimport data}}
33 __declspec(dllimport) int GlobalInit1 = 1; // expected-error{{definition of dllimport data}}
34 int __declspec(dllimport) GlobalInit2 = 1; // expected-error{{definition of dllimport data}}
37 __declspec(dllimport) extern int ExternGlobalDeclInit; // expected-note{{previous declaration is here}} expected-note{{previous attribute is here}}
40 __declspec(dllimport) int GlobalDeclInit; // expected-note{{previous declaration is here}} expected-note{{previous attribute is here}}
50 __declspec(dllimport) extern int GlobalRedecl1;
51 __declspec(dllimport) extern int GlobalRedecl1;
53 __declspec(dllimport) int GlobalRedecl2a;
54 __declspec(dllimport) int GlobalRedecl2a;
64 __declspec(dllimport) extern int GlobalRedecl3; // expected-note{{previous declaration is here}} expected-note{{previous attribute is here}}
68 __declspec(dllimport) extern int GlobalRedecl4; // expected-error{{redeclaration of 'GlobalRedecl4' cannot add 'dllimport' attribute}}
71 __declspec(dllimport) static int StaticGlobal; // expected-error{{'StaticGlobal' must have external linkage when declared 'dllimport'}}
74 __declspec(dllimport) float LocalRedecl1; // expected-note{{previous definition is here}}
75 __declspec(dllimport) float LocalRedecl2; // expected-note{{previous definition is here}}
76 __declspec(dllimport) float LocalRedecl3; // expected-note{{previous definition is here}}
78 __declspec(dllimport) int LocalRedecl1; // expected-error{{redefinition of 'LocalRedecl1' with a different type: 'int' vs 'float'}}
82 __declspec(dllimport) int LocalVarDecl;
83 __declspec(dllimport) int LocalVarDef = 1; // expected-error{{definition of dllimport data}}
84 __declspec(dllimport) extern int ExternLocalVarDecl;
85 __declspec(dllimport) extern int ExternLocalVarDef = 1; // expected-error{{definition of dllimport data}}
86 __declspec(dllimport) static int StaticLocalVar; // expected-error{{'StaticLocalVar' must have external linkage when declared 'dllimport'}}
97 __declspec(dllimport) void decl1B();
100 void __declspec(dllimport) decl2B();
108 __declspec(dllimport) void def() {} // expected-error{{dllimport cannot be applied to non-inline function definition}}
111 __declspec(dllimport) inline void inlineFunc1() {}
115 __declspec(dllimport) void redecl1();
116 __declspec(dllimport) void redecl1();
120 __declspec(dllimport) void redecl2(); // expected-note{{previous declaration is here}} expected-note{{previous attribute is here}}
123 __declspec(dllimport) void redecl3(); // expected-note{{previous declaration is here}} expected-note{{previous attribute is here}}
127 __declspec(dllimport) void redecl4(); // expected-error{{redeclaration of 'redecl4' cannot add 'dllimport' attribute}}
130 __declspec(dllimport) void redecl5();
134 __declspec(dllimport) inline void redecl6() {} // expected-error{{redeclaration of 'redecl6' cannot add 'dllimport' attribute}}
137 __declspec(dllimport) static int staticFunc(); // expected-error{{'staticFunc' must have external linkage when declared 'dllimport'}}