From: Dale Johannesen Date: Tue, 16 Jun 2009 22:18:33 +0000 (+0000) Subject: Test for llvm-gcc patch 73564. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0ab28633c66a4dc996ab8d1eb1a882d19814df7f;p=oota-llvm.git Test for llvm-gcc patch 73564. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73565 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/FrontendC++/2009-06-16-DebugInfoCrash.cpp b/test/FrontendC++/2009-06-16-DebugInfoCrash.cpp new file mode 100644 index 00000000000..b3758d2782c --- /dev/null +++ b/test/FrontendC++/2009-06-16-DebugInfoCrash.cpp @@ -0,0 +1,10 @@ +// RUN: %llvmgxx -c -emit-llvm %s -o /dev/null -g +// This crashes if we try to emit debug info for TEMPLATE_DECL members. +template class K2PtrVectorBase {}; +template class K2Vector {}; +template class K2Vector : public K2PtrVectorBase {}; +class ScriptInfoManager { + void PostRegister() ; + template short ReplaceExistingElement(K2Vector& v); +}; +void ScriptInfoManager::PostRegister() {}