Files
clang-p2996/lldb/test/Shell/SymbolFile/DWARF/x86/explicit-member-function-quals.cpp
Michael Buch 8bd728180c [lldb][test] explicit-member-function-quals.cpp: fix expected output
The `type lookup` output looks different.
2025-01-31 12:38:07 +00:00

23 lines
729 B
C++

// XFAIL: *
// Tests that we correctly deduce the CV-quals and storage
// class of explicit object member functions.
//
// RUN: %clangxx_host %s -target 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(const Foo &) const;
// CHECK-NEXT: void vMethod(volatile Foo &) volatile;
// CHECK-NEXT: void cvMethod(const volatile Foo &) 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;