xref: /llvm-project/lldb/test/API/lang/cpp/global_variables/main.cpp (revision f66b69a3925c547b1ee8ea93800f4bf7e31f407b)
1 #include <stdio.h>
2 
3 namespace abc {
4 int g_file_global_int = 42;
5 const int g_file_global_const_int = 1337;
6 
7 namespace {
8 const int g_anon_namespace_const_int = 100;
9 }
10 }
11 
main(int argc,char const * argv[])12 int main (int argc, char const *argv[])
13 {
14   int unused = abc::g_file_global_const_int;
15   int unused2 = abc::g_anon_namespace_const_int;
16   return abc::g_file_global_int; // Set break point at this line.
17 }
18