1 @import templates_top; 2 3 template<typename T> class Vector; 4 5 template<typename T> class Vector; 6 7 template<typename T> class List; 8 template<> class List<bool> { 9 public: 10 void push_back(int); 11 }; 12 namespace N { 13 template<typename T> class Set; 14 } 15 namespace N { 16 template<typename T> class Set { 17 public: 18 void insert(T); 19 }; 20 } 21 22 constexpr unsigned List<int>::*size_left = &List<int>::size; 23 List<int> list_left = { 0, 8 }; 24 typedef List<int> ListInt_left; 25 26 template <typename T> 27 void pendingInstantiationEmit(T) {} 28 void triggerPendingInstantiation() { 29 pendingInstantiationEmit(12); 30 pendingInstantiationEmit(42.); 31 } 32 33 void redeclDefinitionEmit(){} 34 35 typedef Outer<int>::Inner OuterIntInner_left; 36