[Lldb-commits] [lldb] [LLDB][NativePDB] Add non-overlapping fields in root struct (PR #166243)

via lldb-commits lldb-commits at lists.llvm.org
Tue Nov 4 13:25:53 PST 2025


================
@@ -243,3 +255,44 @@ TEST_F(UdtRecordCompleterRecordTests, TestNestedUnionStructInUnion) {
   AddField(s2, "m4", 2, 4, Member::Field);
   EXPECT_EQ(WrappedRecord(this->record), WrappedRecord(record));
 }
+
+TEST_F(UdtRecordCompleterRecordTests, TestNestedUnionStructInUnion2) {
+  SetKind(Member::Kind::Union);
----------------
Nerixyz wrote:

Yes, I wanted to capture the current state with the test. But now that I think about it, we could do something similar for unions...

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


More information about the lldb-commits mailing list