aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2009-06-16 22:18:33 +0000
committerDale Johannesen <dalej@apple.com>2009-06-16 22:18:33 +0000
commita65e4ac367c11e422442bcb83382af9ebf0d4946 (patch)
tree3f4dd9bf147f1eefa619822cc7045fdc868ec7c6
parent4c4a202ee76fbaa1f864d7b91220bdcb41fe6c0a (diff)
downloadexternal_llvm-a65e4ac367c11e422442bcb83382af9ebf0d4946.zip
external_llvm-a65e4ac367c11e422442bcb83382af9ebf0d4946.tar.gz
external_llvm-a65e4ac367c11e422442bcb83382af9ebf0d4946.tar.bz2
Test for llvm-gcc patch 73564.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73565 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/FrontendC++/2009-06-16-DebugInfoCrash.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/FrontendC++/2009-06-16-DebugInfoCrash.cpp b/test/FrontendC++/2009-06-16-DebugInfoCrash.cpp
new file mode 100644
index 0000000..b3758d2
--- /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 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() {}