From c168faacefe49075f35e961c7647f082f4fa7103 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 12 Sep 2006 16:28:14 +0000 Subject: [PATCH] Testcase that crashes the C++ FE. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30273 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../2006-09-12-OpaqueStructCrash.cpp | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 test/C++Frontend/2006-09-12-OpaqueStructCrash.cpp diff --git a/test/C++Frontend/2006-09-12-OpaqueStructCrash.cpp b/test/C++Frontend/2006-09-12-OpaqueStructCrash.cpp new file mode 100644 index 00000000000..2877e17179e --- /dev/null +++ b/test/C++Frontend/2006-09-12-OpaqueStructCrash.cpp @@ -0,0 +1,28 @@ +// RUN: llvm-g++ -O3 -S -o - %s + +struct A { + virtual ~A(); +}; + +template +struct B : public A { + ~B () { delete [] val; } +private: + Ty* val; +}; + +template +struct C : public A { + C (); + ~C (); +}; + +template +struct D : public A { + D () {} + private: + B > blocks; +}; + +template class D; +