[llvm-commits] [llvm] r64733 - /llvm/branches/Apple/Dib/test/FrontendC++/2009-02-16-CtorNames-dbg.cpp
Bill Wendling
isanbard at gmail.com
Mon Feb 16 18:55:11 PST 2009
Author: void
Date: Mon Feb 16 20:55:11 2009
New Revision: 64733
URL: http://llvm.org/viewvc/llvm-project?rev=64733&view=rev
Log:
Pull r64705 into Dib:
Testcase for r64704.
Added:
llvm/branches/Apple/Dib/test/FrontendC++/2009-02-16-CtorNames-dbg.cpp
Added: llvm/branches/Apple/Dib/test/FrontendC++/2009-02-16-CtorNames-dbg.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/test/FrontendC%2B%2B/2009-02-16-CtorNames-dbg.cpp?rev=64733&view=auto
==============================================================================
--- llvm/branches/Apple/Dib/test/FrontendC++/2009-02-16-CtorNames-dbg.cpp (added)
+++ llvm/branches/Apple/Dib/test/FrontendC++/2009-02-16-CtorNames-dbg.cpp Mon Feb 16 20:55:11 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