summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/virt-dtor-key.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenCXX/virt-dtor-key.cpp')
-rw-r--r--clang/test/CodeGenCXX/virt-dtor-key.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/virt-dtor-key.cpp b/clang/test/CodeGenCXX/virt-dtor-key.cpp
new file mode 100644
index 0000000..a8fa371
--- /dev/null
+++ b/clang/test/CodeGenCXX/virt-dtor-key.cpp
@@ -0,0 +1,9 @@
+// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
+// CHECK: @_ZTI3foo = unnamed_addr constant
+class foo {
+ foo();
+ virtual ~foo();
+};
+
+foo::~foo() {
+}