From 94994d372d014ce4c8758b9605d63fae651bd8aa Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 19 Jan 2019 10:06:29 +0000 Subject: Vendor import of lldb trunk r351319 (just before the release_80 branch point): https://llvm.org/svn/llvm-project/lldb/trunk@351319 --- .../lldbsuite/test/macosx/function-starts/main.cpp | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 packages/Python/lldbsuite/test/macosx/function-starts/main.cpp (limited to 'packages/Python/lldbsuite/test/macosx/function-starts/main.cpp') diff --git a/packages/Python/lldbsuite/test/macosx/function-starts/main.cpp b/packages/Python/lldbsuite/test/macosx/function-starts/main.cpp new file mode 100644 index 000000000000..5a14506d6913 --- /dev/null +++ b/packages/Python/lldbsuite/test/macosx/function-starts/main.cpp @@ -0,0 +1,26 @@ +#include +#include + +#include +#include + +extern void dont_strip_me() +{ + printf("I wasn't stripped\n"); +} + +static void *a_function() +{ + while (1) + { + std::this_thread::sleep_for(std::chrono::microseconds(100)); + dont_strip_me(); + } + return 0; +} + +int main(int argc, char const *argv[]) +{ + a_function(); + return 0; +} -- cgit v1.2.3