Files
clang-p2996/lldb/test/API/lang/cpp/alignas_base_class/main.cpp
Haojian Wu 439b16e2b3 [LLDB] Respect the DW_AT_alignment attribute. (#73307)
Part of fixes for #72913.

clang emits `DW_AT_alignment` attribute, however LLDB didn't respect it,
resulting in incorrect RecordDecls built by lldb.

This only fixes non-inheritance cases. The inheritance case will be
handled in a follow-up patch.
2023-11-28 12:27:55 +01:00

17 lines
153 B
C++

struct B1 {
char f1;
};
struct alignas(8) B2 {
char f2;
};
struct D : B1, B2 {};
D d3g;
struct alignas(8) EmptyClassAlign8 {
} t;
int main() {}