From b8a82ff218758749fc3e6be342e291da3fa93c98 Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Tue, 16 Jun 2009 22:18:33 +0000 Subject: [PATCH] Test for llvm-gcc patch 73564. llvm-svn: 73565 --- llvm/test/FrontendC++/2009-06-16-DebugInfoCrash.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 llvm/test/FrontendC++/2009-06-16-DebugInfoCrash.cpp diff --git a/llvm/test/FrontendC++/2009-06-16-DebugInfoCrash.cpp b/llvm/test/FrontendC++/2009-06-16-DebugInfoCrash.cpp new file mode 100644 index 000000000000..b3758d2782ca --- /dev/null +++ b/llvm/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() {}