1int main(int argc, char **argv) {
2 int *p_null = nullptr;
3 const char *p_char1 = "hello";
4
5 typedef const char *my_char_ptr;
6 my_char_ptr my_p_char1 = p_char1;
7
8 int offset = 5;
9 int *offset_p = &offset;
10 int *&offset_pref = offset_p;
11 int array[10];
12 array[0] = 0;
13 array[offset] = offset;
14
15 int(&array_ref)[10] = array;
16
17 int *p_int0 = &array[0];
18 int **pp_int0 = &p_int0;
19 const int *cp_int0 = &array[0];
20 const int *cp_int5 = &array[offset];
21 const int *&rcp_int0 = cp_int0;
22
23 typedef int *td_int_ptr_t;
24 td_int_ptr_t td_int_ptr0 = &array[0];
25
26 void *p_void = (void *)p_char1;
27 void **pp_void0 = &p_void;
28 void **pp_void1 = pp_void0 + 1;
29
30 return 0; // Set a breakpoint here
31}
32

source code of lldb/test/API/commands/frame/var-dil/basics/PointerArithmetic/main.cpp