From 1d85a1f00bb9554873578d509b0b3aaf1d1d868f Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Tue, 21 Apr 2009 17:21:01 +0000 Subject: [PATCH] Test case for revision 69683. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69684 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/FrontendC++/2009-04-21-DtorNames-dbg.cpp | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 test/FrontendC++/2009-04-21-DtorNames-dbg.cpp diff --git a/test/FrontendC++/2009-04-21-DtorNames-dbg.cpp b/test/FrontendC++/2009-04-21-DtorNames-dbg.cpp new file mode 100644 index 00000000000..4bd8e771e52 --- /dev/null +++ b/test/FrontendC++/2009-04-21-DtorNames-dbg.cpp @@ -0,0 +1,32 @@ +// RUN: %llvmgcc -c -g %s -o - | llc -fast -f -o %t.s +// RUN: %compile_c %t.s -o %t.o +// PR4025 + +template class vector +{ +public: + ~vector () + { + } +}; + +class Foo +{ + ~Foo(); + class FooImpl *impl_; +}; + +namespace { + class Bar; +} + +class FooImpl +{ + vector thing; +}; + +Foo::~Foo() +{ + delete impl_; +} + -- 2.34.1