Files
clang-p2996/lldb/test/API/functionalities/limit-debug-info/main.cpp
Pavel Labath b3b952873f [lldb/DWARF] Look for complete member definitions in other modules
With -flimit-debug-info, we can have a definition of a class, but no
definition for some of its members. This extends the same logic we were
using for incomplete base classes to cover incomplete members too.

Test forward-declarations.s is removed as it is no longer applicable --
we don't warn anymore when encountering incomplete members as they could
be completed elsewhere. New checks added to TestLimitDebugInfo cover the
handling of incomplete members more thoroughly.
2020-07-03 16:50:49 +02:00

26 lines
500 B
C++

#include "onetwo.h"
struct InheritsFromOne : One {
constexpr InheritsFromOne() = default;
int member = 47;
} inherits_from_one;
struct InheritsFromTwo : Two {
constexpr InheritsFromTwo() = default;
int member = 47;
} inherits_from_two;
struct OneAsMember {
constexpr OneAsMember() = default;
member::One one;
int member = 47;
} one_as_member;
struct TwoAsMember {
constexpr TwoAsMember() = default;
member::Two two;
int member = 47;
} two_as_member;
int main() { return 0; }