aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/functionalities/completion/main.cpp
blob: f925c1d5acf31c91fdfc7eff1cc0a55ce7c22af3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include <iostream>

class Baz {
public:
  int x;
};

class Foo
{
public:
  Baz t;
  int temp;

  int Bar(int x, int y) { return x + y; }
};

namespace { int Quux (void) { return 0; } }

struct Container { int MemberVar; };

int main(int argc, char *argv[]) {
  if (argc > 1 && std::string(argv[1]) == "-x")
    std::cin.get();

  Foo fooo;
  Foo *ptr_fooo = &fooo;
  fooo.Bar(1, 2);

  Container container;
  Container *ptr_container = &container;
  int q = Quux();
  return container.MemberVar = 3; // Break here
}