aboutsummaryrefslogblamecommitdiff
path: root/test/mach-o/libresolve-bizarre-root-override.yaml
blob: c65ca319432de0e5275f3b7cac204df1c9235df6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                                                
# RUN: not lld -flavor darwin -test_file_usage -v \
# RUN:        -path_exists /usr/lib \
# RUN:        -path_exists /Applications/MySDK/usr/local/lib \
# RUN:        -path_exists /Applications/MySDK/usr/lib \
# RUN:        -path_exists /Applications/MySDK/usr/lib/libSystem.dylib \
# RUN:        -syslibroot /Applications/MySDK \
# RUN:        -syslibroot / \
# RUN:        -lSystem \
# RUN: 2>&1 | FileCheck %s

# When the last -syslibroot is simply "/", all of them get discarded. So in this
# case, only /usr/lib should show up.

# CHECK: Library search paths:
# CHECK:     /usr/lib
# CHECK-NOT:     /usr/local/lib
# CHECK: Unable to find library for -lSystem