1# RUN: ld64.lld -arch x86_64 -r -test_file_usage -v \ 2# RUN: -path_exists hasFoo \ 3# RUN: -path_exists hasFoo/libFoo.dylib \ 4# RUN: -path_exists /hasBar \ 5# RUN: -path_exists /hasBar/libBar.dylib \ 6# RUN: -path_exists /SDK/hasFoo \ 7# RUN: -path_exists /SDK/hasFoo/libFoo.dylib \ 8# RUN: -path_exists /SDK/hasBar \ 9# RUN: -path_exists /SDK/hasBar/libBar.dylib \ 10# RUN: -syslibroot /SDK \ 11# RUN: -L hasFoo \ 12# RUN: -L /hasBar \ 13# RUN: -lFoo -lBar \ 14# RUN: 2>&1 | FileCheck %s 15 16# CHECK: Library search paths: 17# CHECK: hasFoo 18# CHECK: /SDK/hasBar 19# CHECK: Found library hasFoo/libFoo.dylib 20# CHECK: Found library /SDK/hasBar/libBar.dylib 21