aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/lang/cpp/global_variables/main.cpp
blob: 6cb5fe857c42a975c8216678da9a1d9cab26ba62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdio.h>

namespace abc {
int g_file_global_int = 42;
const int g_file_global_const_int = 1337;

namespace {
const int g_anon_namespace_const_int = 100;
}
}

int main (int argc, char const *argv[])
{
  int unused = abc::g_file_global_const_int;
  int unused2 = abc::g_anon_namespace_const_int;
  return abc::g_file_global_int; // Set break point at this line.
}