[llvm-commits] [llvm] r64705 - /llvm/trunk/test/FrontendC++/2009-02-16-CtorNames-dbg.cpp
Devang Patel
dpatel at apple.com
Mon Feb 16 16:15:08 PST 2009
Author: dpatel
Date: Mon Feb 16 18:15:08 2009
New Revision: 64705
URL: http://llvm.org/viewvc/llvm-project?rev=64705&view=rev
Log:
Testcase for rev. 64704
Added:
llvm/trunk/test/FrontendC++/2009-02-16-CtorNames-dbg.cpp
Added: llvm/trunk/test/FrontendC++/2009-02-16-CtorNames-dbg.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2009-02-16-CtorNames-dbg.cpp?rev=64705&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2009-02-16-CtorNames-dbg.cpp (added)
+++ llvm/trunk/test/FrontendC++/2009-02-16-CtorNames-dbg.cpp Mon Feb 16 18:15:08 2009
@@ -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;
+
More information about the llvm-commits
mailing list