From b52ebc3e29c9613901b329438e53751aee45376f Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Fri, 19 Aug 2011 21:51:07 +0000 Subject: [PATCH] Migrate 2009-06-16-DebugInfoCrash.cpp from llvm/test/FrontendC++. llvm-svn: 138099 --- clang/test/CodeGenCXX/2009-06-16-DebugInfoCrash.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 clang/test/CodeGenCXX/2009-06-16-DebugInfoCrash.cpp diff --git a/clang/test/CodeGenCXX/2009-06-16-DebugInfoCrash.cpp b/clang/test/CodeGenCXX/2009-06-16-DebugInfoCrash.cpp new file mode 100644 index 000000000000..500520b567f5 --- /dev/null +++ b/clang/test/CodeGenCXX/2009-06-16-DebugInfoCrash.cpp @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -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() {}