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; +