llvm/lldb/test/API/commands/expression/top-level/dummy.cpp

#include <stdio.h>

// These are needed to make sure that the linker does not strip the parts of the
// C++ abi library that are necessary to execute the expressions in the
// debugger. It would be great if we did not need to do this, but the fact that
// LLDB cannot conjure up the abi library on demand is not relevant for testing
// top level expressions.
struct DummyA {};
struct DummyB : public virtual DummyA {};

int main() {
  DummyB b;
  printf("This is a dummy\n"); // Set breakpoint here
  return 0;
}