summaryrefslogtreecommitdiffstats
path: root/llvm/test/FrontendC++/2009-06-16-DebugInfoCrash.cpp
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
commitb8a82ff218758749fc3e6be342e291da3fa93c98 (patch)
treeaf88ff4ec3b9c2a9b6d5cdd7cc89bd7fd57a467c /llvm/test/FrontendC++/2009-06-16-DebugInfoCrash.cpp
parent71544dba9d52ca2330d957762f895205a1ca0852 (diff)
downloadbcm5719-llvm-b8a82ff218758749fc3e6be342e291da3fa93c98.tar.gz
bcm5719-llvm-b8a82ff218758749fc3e6be342e291da3fa93c98.zip
Test for llvm-gcc patch 73564.
llvm-svn: 73565
Diffstat (limited to 'llvm/test/FrontendC++/2009-06-16-DebugInfoCrash.cpp')
-rw-r--r--llvm/test/FrontendC++/2009-06-16-DebugInfoCrash.cpp10
1 files changed, 10 insertions, 0 deletions
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 00000000000..b3758d2782c
--- /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 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() {}
OpenPOWER on IntegriCloud