[Lldb-commits] [lldb] [lldb][test] Add tests for alignof on class with overlapping bases (PR #97068)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Fri Jun 28 10:28:43 PDT 2024


================
@@ -0,0 +1,30 @@
+// XFAIL: *
+
+// RUN: %clangxx_host -gdwarf -o %t %s
+// RUN: %lldb %t \
+// RUN:   -o "expr alignof(OverlappingDerived)" \
+// RUN:   -o "expr sizeof(OverlappingDerived)" \
+// RUN:   -o exit | FileCheck %s
+
+// CHECK:      (lldb) expr alignof(OverlappingDerived)
+// CHECK-NEXT: ${{.*}} = 4
----------------
Michael137 wrote:

good point, done

https://github.com/llvm/llvm-project/pull/97068


More information about the lldb-commits mailing list