1#include <stdio.h>
2
3int g_common_1; // Not initialized on purpose to cause it to be undefined external in .o file
4int g_file_global_int = 42;
5static const int g_file_static_int = 2;
6const char *g_file_global_cstr = "g_file_global_cstr";
7static const char *g_file_static_cstr = "g_file_static_cstr";
8int *g_ptr = &g_file_global_int;
9
10extern int g_a;
11int main (int argc, char const *argv[])
12{
13 g_common_1 = g_file_global_int / g_file_static_int;
14 static const char *g_func_static_cstr = "g_func_static_cstr";
15 printf (format: "%s %s\n", g_file_global_cstr, g_file_static_cstr);
16 return *g_file_global_cstr + *g_file_static_cstr + g_file_global_int + g_a + g_common_1 + *g_ptr; // Set break point at this line. //// break $source:$line; continue; var -global g_a -global g_global_int
17}
18

source code of lldb/test/API/lang/c/global_variables/main.c