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: -lSystem -lFoo -lBar \ 12# RUN: 2>&1 | FileCheck %s 13 14# CHECK: Library search paths: 15# CHECK: hasFoo 16# CHECK: /hasBar 17# CHECK: /usr/lib 18# CHECK: /usr/local/lib 19# CHECK: Found library /usr/lib/libSystem.dylib 20# CHECK: Found library hasFoo/libFoo.dylib 21# CHECK: Found library /hasBar/libBar.dylib 22