Relax tests to also work with newer versions of lldb.

- result variables are optional
- static members may print their values
- public/protected shows up in ptype output
This commit is contained in:
Adrian Prantl
2024-03-12 16:10:38 -07:00
parent fd32e744a5
commit 422d240dc9
2 changed files with 8 additions and 8 deletions

View File

@@ -4,19 +4,19 @@
// XFAIL: gdb-clang-incompatibility
// DEBUGGER: delete breakpoints
// DEBUGGER: break static-member.cpp:33
// DEBUGGER: break static-member-2.cpp:36
// DEBUGGER: r
// DEBUGGER: ptype C
// CHECK: {{struct|class}} C {
// CHECK: static const int a;
// CHECK: static const int a
// CHECK-NEXT: static int b;
// CHECK-NEXT: static int c;
// CHECK-NEXT: int d;
// CHECK: int d;
// CHECK-NEXT: }
// DEBUGGER: p C::a
// CHECK: ${{[0-9]}} = 4
// CHECK: 4
// DEBUGGER: p C::c
// CHECK: ${{[0-9]}} = 15
// CHECK: 15
// PR14471, PR14734

View File

@@ -3,14 +3,14 @@
// RUN: %test_debuginfo %s %t.out
// XFAIL: !system-darwin && gdb-clang-incompatibility
// DEBUGGER: delete breakpoints
// DEBUGGER: break static-member.cpp:33
// DEBUGGER: break static-member.cpp:35
// DEBUGGER: r
// DEBUGGER: ptype MyClass
// CHECK: {{struct|class}} MyClass {
// CHECK: static const int a;
// CHECK: static const int a
// CHECK-NEXT: static int b;
// CHECK-NEXT: static int c;
// CHECK-NEXT: int d;
// CHECK: int d;
// CHECK-NEXT: }
// DEBUGGER: p MyClass::a
// CHECK: ${{[0-9]}} = 4