summaryrefslogtreecommitdiff
path: root/lldb/test/API/lang/cpp/function-call-from-object-file/lib1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/API/lang/cpp/function-call-from-object-file/lib1.cpp')
-rw-r--r--lldb/test/API/lang/cpp/function-call-from-object-file/lib1.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/test/API/lang/cpp/function-call-from-object-file/lib1.cpp b/lldb/test/API/lang/cpp/function-call-from-object-file/lib1.cpp
new file mode 100644
index 000000000000..b97bcc1b712b
--- /dev/null
+++ b/lldb/test/API/lang/cpp/function-call-from-object-file/lib1.cpp
@@ -0,0 +1,8 @@
+#include "common.h"
+
+// Parameter "Foo*" forces LLDB to parse "Foo" from the object
+// file that it is stopped in.
+void lib1_func(Foo *) {
+ // Force definition into lib1.o debug-info.
+ Foo{}.foo();
+}