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