Nick Kledzik | 94174f7 | 2014-08-15 19:53:41 | [diff] [blame] | 1 | # RUN: not lld -flavor darwin -test_file_usage -v \ |
Tim Northover | 77d8220 | 2014-07-10 11:21:06 | [diff] [blame] | 2 | # RUN: -path_exists /usr/lib \ |
| 3 | # RUN: -path_exists /Applications/MySDK/usr/local/lib \ |
| 4 | # RUN: -path_exists /Applications/MySDK/usr/lib \ |
| 5 | # RUN: -path_exists /Applications/MySDK/usr/lib/libSystem.dylib \ |
| 6 | # RUN: -syslibroot /Applications/MySDK \ |
| 7 | # RUN: -syslibroot / \ |
| 8 | # RUN: -lSystem \ |
| 9 | # RUN: 2>&1 | FileCheck %s |
| 10 | |
| 11 | # When the last -syslibroot is simply "/", all of them get discarded. So in this |
| 12 | # case, only /usr/lib should show up. |
| 13 | |
| 14 | # CHECK: Library search paths: |
| 15 | # CHECK: /usr/lib |
| 16 | # CHECK-NOT: /usr/local/lib |
Nick Kledzik | 5172067 | 2014-10-16 19:31:28 | [diff] [blame] | 17 | # CHECK: Unable to find library for -lSystem |