diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:23:48 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:23:48 +0000 |
commit | 06d4ba388873e6d1cfa9cd715a8935ecc8cd2097 (patch) | |
tree | 3eb853da77d46cc77c4b017525a422f9ddb1385b /test/CodeGenCXX/debug-info-ptr-to-member-function.cpp | |
parent | 30d791273d07fac9c0c1641a0731191bca6e8606 (diff) |
Notes
Diffstat (limited to 'test/CodeGenCXX/debug-info-ptr-to-member-function.cpp')
-rw-r--r-- | test/CodeGenCXX/debug-info-ptr-to-member-function.cpp | 10 |
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 000000000000..656e6f495880 --- /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 |