1 | #include <stdio.h> |
2 | |
3 | // These are needed to make sure that the linker does not strip the parts of the |
4 | // C++ abi library that are necessary to execute the expressions in the |
5 | // debugger. It would be great if we did not need to do this, but the fact that |
6 | // LLDB cannot conjure up the abi library on demand is not relevant for testing |
7 | // top level expressions. |
8 | struct DummyA {}; |
9 | struct DummyB : public virtual DummyA {}; |
10 | |
11 | int main() { |
12 | DummyB b; |
13 | printf(format: "This is a dummy\n" ); // Set breakpoint here |
14 | return 0; |
15 | } |
16 | |