Skip to content

[lldb][test] Add test for detecting CV-quals of explicit object member functions #125053

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 30, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// XFAIL: *

// Tests that we correctly deduce the CV-quals and storage
// class of explicit object member functions.
//
// RUN: %clangxx_host %s -triple x86_64-pc-linux -g -std=c++23 -c -o %t
// RUN: %lldb %t -b -o "type lookup Foo" 2>&1 | FileCheck %s
//
// CHECK: (lldb) type lookup Foo
// CHECK-NEXT: struct Foo {
// CHECK-NEXT: void Method(Foo);
// CHECK-NEXT: void cMethod(Foo const&);
// CHECK-NEXT: void vMethod(Foo volatile&);
// CHECK-NEXT: void cvMethod(const Foo volatile&) const volatile;
// CHECK-NEXT: }

struct Foo {
void Method(this Foo) {}
void cMethod(this Foo const &) {}
void vMethod(this Foo volatile &) {}
void cvMethod(this Foo const volatile &) {}
} f;