xref: /llvm-project/lldb/test/API/lang/cpp/break-on-initializers/main.cpp (revision ff954865137cdd11165340e2c9537cfd1b3f805d)
1 class Trivial {
2 public:
Trivial(int input)3   Trivial(int input) : m_int(input) {}
4 private:
5   int m_int;
6 };
7 
8 class Foo {
9 private:
10   Trivial m_trivial = Trivial(100); // Set the before constructor breakpoint here
11 
12 public:
Foo(int input)13   Foo(int input) {
14     ++input;
15   }
16 
17 private:
18   Trivial m_other_trivial = Trivial(200); // Set the after constructor breakpoint here
19 };
20 
main()21 int main() {
22   Foo myFoo(10); // Set a breakpoint here to get started
23   return 0;
24 }
25