1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm %s -o /dev/null -g 2*f4a2713aSLionel Sambuc // This crashes if we try to emit debug info for TEMPLATE_DECL members. 3*f4a2713aSLionel Sambuc template <class T> class K2PtrVectorBase {}; 4*f4a2713aSLionel Sambuc template <class T> class K2Vector {}; 5*f4a2713aSLionel Sambuc template <class U > class K2Vector<U*> : public K2PtrVectorBase<U*> {}; 6*f4a2713aSLionel Sambuc class ScriptInfoManager { 7*f4a2713aSLionel Sambuc void PostRegister() ; 8*f4a2713aSLionel Sambuc template <class SI> short ReplaceExistingElement(K2Vector<SI*>& v); 9*f4a2713aSLionel Sambuc }; PostRegister()10*f4a2713aSLionel Sambucvoid ScriptInfoManager::PostRegister() {} 11