[cfe-commits] r138099 - /cfe/trunk/test/CodeGenCXX/2009-06-16-DebugInfoCrash.cpp
Eric Christopher
echristo at apple.com
Fri Aug 19 14:51:07 PDT 2011
Author: echristo
Date: Fri Aug 19 16:51:07 2011
New Revision: 138099
URL: http://llvm.org/viewvc/llvm-project?rev=138099&view=rev
Log:
Migrate 2009-06-16-DebugInfoCrash.cpp from llvm/test/FrontendC++.
Added:
cfe/trunk/test/CodeGenCXX/2009-06-16-DebugInfoCrash.cpp
Added: cfe/trunk/test/CodeGenCXX/2009-06-16-DebugInfoCrash.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/2009-06-16-DebugInfoCrash.cpp?rev=138099&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenCXX/2009-06-16-DebugInfoCrash.cpp (added)
+++ cfe/trunk/test/CodeGenCXX/2009-06-16-DebugInfoCrash.cpp Fri Aug 19 16:51:07 2011
@@ -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 T> class K2PtrVectorBase {};
+template <class T> class K2Vector {};
+template <class U > class K2Vector<U*> : public K2PtrVectorBase<U*> {};
+class ScriptInfoManager {
+ void PostRegister() ;
+ template <class SI> short ReplaceExistingElement(K2Vector<SI*>& v);
+};
+void ScriptInfoManager::PostRegister() {}
More information about the cfe-commits
mailing list