aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC++
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
commit0ab28633c66a4dc996ab8d1eb1a882d19814df7f (patch)
tree3f4dd9bf147f1eefa619822cc7045fdc868ec7c6 /test/FrontendC++
parent95efbcb5e1774f538f1f0514e1a488a3cece403e (diff)
downloadexternal_llvm-0ab28633c66a4dc996ab8d1eb1a882d19814df7f.zip
external_llvm-0ab28633c66a4dc996ab8d1eb1a882d19814df7f.tar.gz
external_llvm-0ab28633c66a4dc996ab8d1eb1a882d19814df7f.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
Diffstat (limited to 'test/FrontendC++')
-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() {}