OSDN Git Service

Testcase for rev. 64704
authorDevang Patel <dpatel@apple.com>
Tue, 17 Feb 2009 00:15:08 +0000 (00:15 +0000)
committerDevang Patel <dpatel@apple.com>
Tue, 17 Feb 2009 00:15:08 +0000 (00:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64705 91177308-0d34-0410-b5e6-96231b3b80d8

test/FrontendC++/2009-02-16-CtorNames-dbg.cpp [new file with mode: 0644]

diff --git a/test/FrontendC++/2009-02-16-CtorNames-dbg.cpp b/test/FrontendC++/2009-02-16-CtorNames-dbg.cpp
new file mode 100644 (file)
index 0000000..7d98827
--- /dev/null
@@ -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;
+