| 1 | struct Indexed {}; |
|---|---|
| 2 | struct NotIndexed {}; |
| 3 | |
| 4 | #define BUFFER_SIZE 16 |
| 5 | struct NonPrimitive { |
| 6 | char buffer[BUFFER_SIZE]; |
| 7 | int x; |
| 8 | long y; |
| 9 | }; |
| 10 | |
| 11 | NonPrimitive test_return_variable_with_children() { |
| 12 | return NonPrimitive{.buffer: "hello world!", .x: 10, .y: 20}; |
| 13 | } |
| 14 | |
| 15 | int 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 |
