Skip to content

Commit 310d7d6

Browse files
committed
[lldb][test] Add test for detecting CV-quals of explicit object member functions
This is XFAILed for now until we find a good way to locate the DW_AT_object_pointer of function declarations (a possible solution being llvm#124790).
1 parent b68b4f6 commit 310d7d6

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// XFAIL: *
2+
3+
// Tests that we correctly deduce the CV-quals and storage
4+
// class of explicit object member functions.
5+
//
6+
// RUN: %clangxx_host %s -g -std=c++23 -c -o %t
7+
// RUN: %lldb %t -b -o "type lookup Foo" 2>&1 | FileCheck %s
8+
//
9+
// CHECK: (lldb) type lookup Foo
10+
// CHECK-NEXT: struct Foo {
11+
// CHECK-NEXT: void Method(Foo);
12+
// CHECK-NEXT: void cMethod(Foo const&);
13+
// CHECK-NEXT: void vMethod(Foo volatile&);
14+
// CHECK-NEXT: void cvMethod(const Foo volatile&) const volatile;
15+
// CHECK-NEXT: }
16+
17+
struct Foo {
18+
void Method(this Foo) {}
19+
void cMethod(this Foo const&) {}
20+
void vMethod(this Foo volatile&) {}
21+
void cvMethod(this Foo const volatile&) {}
22+
} f;

0 commit comments

Comments
 (0)