summaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/pr34163.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenCXX/pr34163.cpp')
-rw-r--r--test/CodeGenCXX/pr34163.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGenCXX/pr34163.cpp b/test/CodeGenCXX/pr34163.cpp
new file mode 100644
index 000000000000..a200a0f509bc
--- /dev/null
+++ b/test/CodeGenCXX/pr34163.cpp
@@ -0,0 +1,13 @@
+// RUN: %clang_cc1 -emit-llvm -debug-info-kind=standalone -triple x86_64-linux-gnu -o - -x c++ %s | FileCheck %s
+
+void f(struct X *) {}
+
+// CHECK: @_ZTV1X =
+struct X {
+ void a() { delete this; }
+ virtual ~X() {}
+ virtual void key_function();
+};
+
+// CHECK: define {{.*}} @_ZN1X12key_functionEv(
+void X::key_function() {}