19 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t.o %s4 5## -final_output sets the default for -install_name, but an explicit6## -install_name wins7# RUN: %lld -dylib -o %t.dylib -final_output /lib/foo.dylib %t.o8# RUN: llvm-otool -D %t.dylib | FileCheck -DID=/lib/foo.dylib %s9 10# RUN: %lld -dylib -o %t.dylib -install_name /foo/bar.dylib \11# RUN: -final_output /lib/foo.dylib %t.o12# RUN: llvm-otool -D %t.dylib | FileCheck -DID=/foo/bar.dylib %s13 14# CHECK: [[ID]]15 16.globl __Z3foo17__Z3foo:18 ret19