aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/lang/cpp/function-qualifiers/main.cpp
blob: 4d3fbcfc39370ec77a8903331c85d71cb3278ff3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
struct C {
  int func() { return 111; }
  int func() const { return 222; }

  int const_func() const { return 333; }
  int nonconst_func() { return 444; }
};

int main() {
  C c;
  const C const_c;
  c.func();
  c.nonconst_func();
  const_c.func();
  c.const_func();
  return 0; // break here
}