From e5f6fef86c46b112228b693cac1703f0503f8d5c Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Tue, 17 Feb 2009 00:15:08 +0000 Subject: [PATCH] Testcase for rev. 64704 llvm-svn: 64705 --- test/FrontendC++/2009-02-16-CtorNames-dbg.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/FrontendC++/2009-02-16-CtorNames-dbg.cpp diff --git a/test/FrontendC++/2009-02-16-CtorNames-dbg.cpp b/test/FrontendC++/2009-02-16-CtorNames-dbg.cpp new file mode 100644 index 00000000000..7d988276379 --- /dev/null +++ b/test/FrontendC++/2009-02-16-CtorNames-dbg.cpp @@ -0,0 +1,12 @@ +// RUN: %llvmgcc -S -g --emit-llvm %s -o - | grep "\~A" +// RUN: %llvmgcc -S -g --emit-llvm %s -o - | not grep comp_ctor +// RUN: %llvmgcc -S -g --emit-llvm %s -o - | not grep comp_dtor +class A { + int i; +public: + A() { i = 0; } + ~A() { i = 42; } +}; + +A a; +