2014-08-16 03:53:41 +08:00
|
|
|
# RUN: lld -flavor darwin -arch x86_64 -r -test_file_usage -v \
|
2014-07-10 19:46:08 +08:00
|
|
|
# RUN: -path_exists hasFoo \
|
|
|
|
# RUN: -path_exists hasFoo/libFoo.dylib \
|
|
|
|
# RUN: -path_exists /hasBar \
|
|
|
|
# RUN: -path_exists /hasBar/libBar.dylib \
|
|
|
|
# RUN: -path_exists /SDK/hasFoo \
|
|
|
|
# RUN: -path_exists /SDK/hasFoo/libFoo.dylib \
|
|
|
|
# RUN: -path_exists /SDK/hasBar \
|
|
|
|
# RUN: -path_exists /SDK/hasBar/libBar.dylib \
|
|
|
|
# RUN: -syslibroot /SDK \
|
|
|
|
# RUN: -L hasFoo \
|
|
|
|
# RUN: -L /hasBar \
|
|
|
|
# RUN: -lFoo -lBar \
|
|
|
|
# RUN: 2>&1 | FileCheck %s
|
|
|
|
|
|
|
|
# CHECK: Library search paths:
|
|
|
|
# CHECK: hasFoo
|
|
|
|
# CHECK: /SDK/hasBar
|
|
|
|
# CHECK: Found library hasFoo/libFoo.dylib
|
|
|
|
# CHECK: Found library /SDK/hasBar/libBar.dylib
|