21 lines · cpp
1struct Indexed {};2struct NotIndexed {};3 4#define BUFFER_SIZE 165struct NonPrimitive {6 char buffer[BUFFER_SIZE];7 int x;8 long y;9};10 11NonPrimitive test_return_variable_with_children() {12 return NonPrimitive{"hello world!", 10, 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 here20}21