summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/variables/main.cpp
blob: 0223bd0a75ea887bed4594aff8f519aaf4833817 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#define BUFFER_SIZE 32
struct PointType {
  int x;
  int y;
  int buffer[BUFFER_SIZE];
};

int g_global = 123;
static int s_global = 234;

int main(int argc, char const *argv[]) {
  static float s_local = 2.25;
  PointType pt = { 11,22, {0}};
  for (int i=0; i<BUFFER_SIZE; ++i)
    pt.buffer[i] = i;
  return s_global - g_global - pt.y; // breakpoint 1
}