aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC++
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-02-17 00:15:08 +0000
committerDevang Patel <dpatel@apple.com>2009-02-17 00:15:08 +0000
commit8f0327561bc6f4acf6020cbe69feefe931c50c18 (patch)
treeb44159135e12bf2f1d9f676d9eaa573ccd645fb6 /test/FrontendC++
parent98c073bf92742ae8cc7ab25cf2aa7c6f09cdd175 (diff)
downloadexternal_llvm-8f0327561bc6f4acf6020cbe69feefe931c50c18.zip
external_llvm-8f0327561bc6f4acf6020cbe69feefe931c50c18.tar.gz
external_llvm-8f0327561bc6f4acf6020cbe69feefe931c50c18.tar.bz2
Testcase for rev. 64704
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64705 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendC++')
-rw-r--r--test/FrontendC++/2009-02-16-CtorNames-dbg.cpp12
1 files changed, 12 insertions, 0 deletions
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 0000000..7d98827
--- /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;
+