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