summaryrefslogtreecommitdiff
path: root/test/mach-o/lib-search-paths.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'test/mach-o/lib-search-paths.yaml')
-rw-r--r--test/mach-o/lib-search-paths.yaml16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/mach-o/lib-search-paths.yaml b/test/mach-o/lib-search-paths.yaml
new file mode 100644
index 0000000000000..5005f016857fa
--- /dev/null
+++ b/test/mach-o/lib-search-paths.yaml
@@ -0,0 +1,16 @@
+# RUN: lld -flavor darwin -arch x86_64 %s -syslibroot %p/Inputs/lib-search-paths -lmyshared -lmystatic -lfile.o -r -print_atoms 2>&1 | FileCheck %s
+
+--- !native
+undefined-atoms:
+ - name: _from_myshared
+ - name: _from_mystatic
+ - name: _from_fileo
+
+# CHECK: defined-atoms:
+# CHECK: - name: _from_fileo
+# CHECK: content: [ 2A, 00, 00, 00 ]
+# CHECK: - name: _from_mystatic
+# CHECK: content: [ 02, 00, 00, 00 ]
+# CHECK: shared-library-atoms:
+# CHECK: - name: _from_myshared
+# CHECK: load-name: libmyshared.dylib