1 | #include <stdio.h> |
---|---|
2 | |
3 | int g_common_1; // Not initialized on purpose to cause it to be undefined external in .o file |
4 | int g_file_global_int = 42; |
5 | static const int g_file_static_int = 2; |
6 | const char *g_file_global_cstr = "g_file_global_cstr"; |
7 | static const char *g_file_static_cstr = "g_file_static_cstr"; |
8 | int *g_ptr = &g_file_global_int; |
9 | |
10 | extern int g_a; |
11 | int 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 |