1struct Indexed {};
2struct NotIndexed {};
3
4#define BUFFER_SIZE 16
5struct NonPrimitive {
6 char buffer[BUFFER_SIZE];
7 int x;
8 long y;
9};
10
11NonPrimitive test_return_variable_with_children() {
12 return NonPrimitive{.buffer: "hello world!", .x: 10, .y: 20};
13}
14
15int main() {
16 Indexed indexed;
17 NotIndexed not_indexed;
18 NonPrimitive non_primitive_result = test_return_variable_with_children();
19 return 0; // break here
20}
21

source code of lldb/test/API/tools/lldb-dap/variables/children/main.cpp