summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/debug-info-ptr-to-member-function.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2015-01-07 17:49:30 +0000
committerAdrian Prantl <aprantl@apple.com>2015-01-07 17:49:30 +0000
commitad72e6e6443e5c47c27d13ff0af7434772d49056 (patch)
tree0f46f024d4e5bb4e9c3176b6de8c5fb864741a82 /test/CodeGenCXX/debug-info-ptr-to-member-function.cpp
parent143cd925d8c7da707013cb8a82afc1fa61186ee6 (diff)
Debug info: pass in the correct size for a pointer to a member function.
This corrects a bug I introduced in r224781. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@225359 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/debug-info-ptr-to-member-function.cpp')
-rw-r--r--test/CodeGenCXX/debug-info-ptr-to-member-function.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGenCXX/debug-info-ptr-to-member-function.cpp b/test/CodeGenCXX/debug-info-ptr-to-member-function.cpp
new file mode 100644
index 0000000000..656e6f4958
--- /dev/null
+++ b/test/CodeGenCXX/debug-info-ptr-to-member-function.cpp
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 %s -triple x86_64-apple-darwin -g -emit-llvm -o - | FileCheck %s
+
+struct T {
+ int method();
+};
+
+void foo(int (T::*method)()) {}
+
+// A pointer to a member function is a pair of function- and this-pointer.
+// CHECK: [ DW_TAG_ptr_to_member_type ] {{.*}} size 128