Lines Matching full:definition
42 __declspec(dllimport) extern int ExternGlobalInit = 1; // expected-error{{definition of dllimport data}}
43 __declspec(dllimport) int GlobalInit1 = 1; // expected-error{{definition of dllimport data}}
44 int __declspec(dllimport) GlobalInit2 = 1; // expected-error{{definition of dllimport data}}
46 // Declare, then reject definition.
87 // expected-error@-1{{definition of dllimport data}}
90 __declspec(dllimport) float LocalRedecl1; // expected-note{{previous definition is here}}
91 __declspec(dllimport) float LocalRedecl2; // expected-note{{previous definition is here}}
92 __declspec(dllimport) float LocalRedecl3; // expected-note{{previous definition is here}}
99 __declspec(dllimport) int LocalVarDef = 1; // expected-error{{definition of dllimport data}}
101 __declspec(dllimport) extern int ExternLocalVarDef = 1; // expected-error{{definition of dllimport data}}
119 template<typename T> __declspec(dllimport) extern int ExternVarTmplInit = 1; // expected-error{{definition of dllimport data}}
120 template<typename T> __declspec(dllimport) int VarTmplInit1 = 1; // expected-error{{definition of dllimport data}}
121 template<typename T> int __declspec(dllimport) VarTmplInit2 = 1; // expected-error{{definition of dllimport data}}
123 // Declare, then reject definition.
149 template<typename T> __declspec(dllimport) auto InternalAutoTypeVarTmpl = Internal(); // expected-error{{definition of dllimport data}} // expected-error{{'InternalAutoTypeVarTmpl' must have external linkage when declared 'dllimport'}}
161 // An explicit instantiation definition of an imported variable template cannot
166 template<> __declspec(dllimport) int ImportedVarTmpl<ExplicitSpec_Def_Imported> = 1; // expected-error{{definition of dllimport data}}
176 // Import explicit instantiation definition of a non-imported variable template.
181 template<> __declspec(dllimport) int VarTmpl<ExplicitSpec_Def_Imported> = 1; // expected-error{{definition of dllimport data}}
199 __declspec(dllimport) void def() {} // expected-error{{dllimport cannot be applied to non-inline function definition}}
259 __declspec(dllimport) void deletedFunc() = delete; // expected-error{{attribute 'dllimport' cannot be applied to a deleted function}} expected-error{{dllimport cannot be applied to non-inline function definition}}
272 // Import function template definition.
273 template<typename T> __declspec(dllimport) void funcTmplDef() {} // expected-error{{dllimport cannot be applied to non-inline function definition}}
334 // Import explicit instantiation definition of an imported function template.
339 // Import specialization of an imported function template. A definition must be
342 template<> __declspec(dllimport) void importedFuncTmpl<ExplicitSpec_Def_Imported>() {} // expected-error{{dllimport cannot be applied to non-inline function definition}}
354 // Import explicit instantiation definition of a non-imported function template.
358 // Import specialization of a non-imported function template. A definition must
361 template<> __declspec(dllimport) void funcTmpl<ExplicitSpec_Def_Imported>() {} // expected-error{{dllimport cannot be applied to non-inline function definition}}
420 int ImportMembers::StaticFieldDef; // expected-error{{definition of dllimport static field not allowed}}
421 const int ImportMembers::StaticConstFieldDef = 1; // expected-error{{definition of dllimport static field not allowed}}
422 constexpr int ImportMembers::ConstexprFieldDef; // expected-error{{definition of dllimport static field not allowed}}
442 __declspec(dllimport) void ImportMemberDefs::normalDef() {} // expected-error{{dllimport cannot be applied to non-inline function definition}}
445 __declspec(dllimport) void ImportMemberDefs::virtualDef() {} // expected-error{{dllimport cannot be applied to non-inline function definition}}
448 __declspec(dllimport) void ImportMemberDefs::staticDef() {} // expected-error{{dllimport cannot be applied to non-inline function definition}}
452 __declspec(dllimport) int ImportMemberDefs::StaticField; // expected-error{{definition of dllimport static field not allowed}} expected-note{{attribute is here}}
453 __declspec(dllimport) const int ImportMemberDefs::StaticConstField = 1; // expected-error{{definition of dllimport static field not allowed}} expected-note{{attribute is here}}
454 __declspec(dllimport) constexpr int ImportMemberDefs::ConstexprField; // expected-error{{definition of dllimport static field not allowed}} expected-note{{attribute is here}}
513 __declspec(dllimport) ImportDefaultedDefs::ImportDefaultedDefs() = default; // expected-error{{dllimport cannot be applied to non-inline function definition}}
518 // Import inline declaration and definition.
522 definition}}
544 // expected-error@-1{{dllimport cannot be applied to non-inline function definition}}
548 // expected-error@-1{{dllimport cannot be applied to non-inline function definition}}
552 // expected-error@-1{{dllimport cannot be applied to non-inline function definition}}
557 // expected-error@-1{{definition of dllimport static field not allowed}}
560 // expected-error@-1{{definition of dllimport static field not allowed}}
563 // expected-error@-1{{definition of dllimport static field not allowed}}
604 template<typename T> int ImportMemberTmpl::StaticFieldDef; // expected-error{{definition of dllimport static field not allowed}}
605 template<typename T> const int ImportMemberTmpl::StaticConstFieldDef = 1; // expected-error{{definition of dllimport static field not allowed}}
606 template<typename T> constexpr int ImportMemberTmpl::ConstexprFieldDef; // expected-error{{definition of dllimport static field not allowed}}
627 // expected-error@-1{{dllimport cannot be applied to non-inline function definition}}
631 // expected-error@-1{{dllimport cannot be applied to non-inline function definition}}
637 // expected-error@-1{{definition of dllimport static field not allowed}}
640 // expected-error@-1{{definition of dllimport static field not allowed}}
643 // expected-error@-1{{definition of dllimport static field not allowed}}
667 // Import explicit instantiation definition of an imported member function
678 // expected-error@-3{{dllimport cannot be applied to non-inline function definition}}
685 // expected-error@-3{{dllimport cannot be applied to non-inline function definition}}
699 // Import explicit instantiation definition of a non-imported member function
709 // expected-error@-3{{dllimport cannot be applied to non-inline function definition}}
716 // expected-error@-3{{dllimport cannot be applied to non-inline function definition}}
734 // An explicit instantiation definition of an imported member variable template
741 // expected-error@-1{{definition of dllimport static field not allowed}}
753 // An explicit instantiation definition of a non-imported member variable template
760 // expected-error@-1{{definition of dllimport static field not allowed}}
819 template<typename T> int ImportClassTmplMembers<T>::StaticFieldDef; // expected-warning{{definition of dllimport static field}}
820 template<typename T> const int ImportClassTmplMembers<T>::StaticConstFieldDef = 1; // expected-warning{{definition of dllimport static field}}
821 template<typename T> constexpr int ImportClassTmplMembers<T>::ConstexprFieldDef; // expected-warning{{definition of dllimport static field}}
843 // expected-error@-1{{dllimport cannot be applied to non-inline function definition}}
847 // expected-error@-1{{dllimport cannot be applied to non-inline function definition}}
851 // expected-error@-1{{dllimport cannot be applied to non-inline function definition}}
856 // expected-warning@-1{{definition of dllimport static field}}
859 // expected-warning@-1{{definition of dllimport static field}}
862 // expected-warning@-1{{definition of dllimport static field}}
904 template<typename T> template<typename U> int ImportClsTmplMemTmpl<T>::StaticFieldDef; // expected-warning{{definition of dllimport static field}}
905 template<typename T> template<typename U> const int ImportClsTmplMemTmpl<T>::StaticConstFieldDef = 1; // expected-warning{{definition of dllimport static field}}
906 template<typename T> template<typename U> constexpr int ImportClsTmplMemTmpl<T>::ConstexprFieldDef; // expected-warning{{definition of dllimport static field}}
928 // expected-error@-1{{dllimport cannot be applied to non-inline function definition}}
932 // expected-error@-1{{dllimport cannot be applied to non-inline function definition}}
938 // expected-warning@-1{{definition of dllimport static field}}
941 // expected-warning@-1{{definition of dllimport static field}}
944 // expected-warning@-1{{definition of dllimport static field}}
986 int S<int>::x = -1; // expected-error{{definition of dllimport static field not allowed}}