diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-01-07 05:55:03 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-01-07 05:55:03 +0000 |
commit | 0028ee3dd32c5e3b089c0ef176b97ebcdd2c4cf6 (patch) | |
tree | 27c280f3970f23f2fad2332a0876f9b0454b8f85 /test/CodeGenCXX/debug-info-method.cpp | |
parent | d938e87458f18ffe4314936c5ab985b6b232c31f (diff) |
PR14759: Improve/correct support for debug info for C++ member pointers.
Using added LLVM functionality in r171698. This works in GDB for member
variable pointers but not member function pointers. See the LLVM commit and
GDB bug 14998 for details.
Un-xfailing cases in the GDB 7.5 test suite will follow.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171699 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/debug-info-method.cpp')
-rw-r--r-- | test/CodeGenCXX/debug-info-method.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CodeGenCXX/debug-info-method.cpp b/test/CodeGenCXX/debug-info-method.cpp index dfd397987f..e9aa34a4a0 100644 --- a/test/CodeGenCXX/debug-info-method.cpp +++ b/test/CodeGenCXX/debug-info-method.cpp @@ -1,5 +1,7 @@ // RUN: %clang_cc1 -emit-llvm -std=c++11 -g %s -o - | FileCheck %s // CHECK: metadata !"_ZN1A3fooEiS_3$_0", {{.*}} [protected] +// CHECK: DW_TAG_ptr_to_member_type +// CHECK: DW_TAG_ptr_to_member_type // CHECK: ""{{.*}}DW_TAG_arg_variable // CHECK: ""{{.*}}DW_TAG_arg_variable // CHECK: ""{{.*}}DW_TAG_arg_variable @@ -17,3 +19,6 @@ void A::foo(int, A, decltype(u)) { } A a; + +int A::*x = 0; +int (A::*y)(int) = 0; |