1#include <cstddef>
2
3int main(int argc, char **argv) {
4 int *p_null = nullptr;
5 const char *p_char1 = "hello";
6
7 typedef const char *my_char_ptr;
8 my_char_ptr my_p_char1 = p_char1;
9
10 int offset = 5;
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
22 typedef int *td_int_ptr_t;
23 td_int_ptr_t td_int_ptr0 = &array[0];
24
25 void *p_void = (void *)p_char1;
26 void **pp_void0 = &p_void;
27 void **pp_void1 = pp_void0 + 1;
28
29 void **pp_void0_2 = &pp_void0[2];
30 int *pp_int0_2stars = &**pp_int0;
31 std::nullptr_t std_nullptr_t = nullptr;
32
33 return 0; // Set a breakpoint here
34}
35

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