xref: /llvm-project/lldb/test/API/lang/cpp/global_variables/main.cpp (revision f66b69a3925c547b1ee8ea93800f4bf7e31f407b)
199451b44SJordan Rupprecht #include <stdio.h>
299451b44SJordan Rupprecht 
399451b44SJordan Rupprecht namespace abc {
499451b44SJordan Rupprecht int g_file_global_int = 42;
5*f66b69a3STonko Sabolčec const int g_file_global_const_int = 1337;
6*f66b69a3STonko Sabolčec 
7*f66b69a3STonko Sabolčec namespace {
8*f66b69a3STonko Sabolčec const int g_anon_namespace_const_int = 100;
9*f66b69a3STonko Sabolčec }
1099451b44SJordan Rupprecht }
1199451b44SJordan Rupprecht 
main(int argc,char const * argv[])1299451b44SJordan Rupprecht int main (int argc, char const *argv[])
1399451b44SJordan Rupprecht {
14*f66b69a3STonko Sabolčec   int unused = abc::g_file_global_const_int;
15*f66b69a3STonko Sabolčec   int unused2 = abc::g_anon_namespace_const_int;
1699451b44SJordan Rupprecht   return abc::g_file_global_int; // Set break point at this line.
1799451b44SJordan Rupprecht }
18