xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/2009-06-16-DebugInfoCrash.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
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 Sambuc void ScriptInfoManager::PostRegister() {}
11