1# REQUIRES: x86 2 3# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t.o %s 4 5## -final_output sets the default for -install_name, but an explicit 6## -install_name wins 7# RUN: %lld -dylib -o %t.dylib -final_output /lib/foo.dylib %t.o 8# RUN: llvm-otool -D %t.dylib | FileCheck -DID=/lib/foo.dylib %s 9 10# RUN: %lld -dylib -o %t.dylib -install_name /foo/bar.dylib \ 11# RUN: -final_output /lib/foo.dylib %t.o 12# RUN: llvm-otool -D %t.dylib | FileCheck -DID=/foo/bar.dylib %s 13 14# CHECK: [[ID]] 15 16.globl __Z3foo 17__Z3foo: 18 ret 19