summaryrefslogtreecommitdiff
path: root/lldb/test/API/tools/lldb-dap/variables/children/main.cpp
blob: 59a86f758ab28aaf0ccb497efafb8253b971e48b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
struct Indexed {};
struct NotIndexed {};

#define BUFFER_SIZE 16
struct NonPrimitive {
  char buffer[BUFFER_SIZE];
  int x;
  long y;
};

NonPrimitive test_return_variable_with_children() {
  return NonPrimitive{"hello world!", 10, 20};
}

int main() {
  Indexed indexed;
  NotIndexed not_indexed;
  NonPrimitive non_primitive_result = test_return_variable_with_children();
  return 0; // break here
}