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 -target x86_64-pc-linux -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(const Foo &) const;
13// CHECK-NEXT: void vMethod(volatile Foo &) volatile;
14// CHECK-NEXT: void cvMethod(const volatile Foo &) const volatile;
15// CHECK-NEXT: }
16
17struct 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;
23

source code of lldb/test/Shell/SymbolFile/DWARF/x86/explicit-member-function-quals.cpp