1#include <stdio.h>
2
3char my_global_char = 'X';
4const char* my_global_str = "abc";
5const char **my_global_str_ptr = &my_global_str;
6static int my_static_int = 228;
7
8int main (int argc, char const *argv[])
9{
10 printf(format: "global char: %c\n", my_global_char);
11
12 printf(format: "global str: %s\n", my_global_str);
13
14 printf(format: "argc + my_static_int = %d\n", (argc + my_static_int));
15
16 return 0;
17}
18

source code of lldb/test/API/commands/target/basic/globals.c