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