mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-24 14:05:49 -04:00

Summary: As discussed on lldb-dev, this patch moves some LLDB tests into a hierarchy that more closely resembles the commands we use in the LLDB interpreter. This patch should only move tests that use the command interpreter and shouldn't touch any tests that primarily test the SB API. Reviewers: #lldb, jfb, JDevlieghere Reviewed By: #lldb, JDevlieghere Subscribers: dexonsmith, arphaman, JDevlieghere, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D67033 llvm-svn: 370605
16 lines
513 B
C++
16 lines
513 B
C++
#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;
|
|
}
|