1# REQUIRES: x86 2 3# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t.o %s 4# RUN: %lld -dylib -o %t.dylib -umbrella umbrella.dylib %t.o 5# RUN: llvm-otool -lv %t.dylib | FileCheck %s 6 7# RUN: %no-fatal-warnings-lld -bundle -o %t.so -umbrella umbrella.dylib %t.o \ 8# RUN: 2>&1 | FileCheck --check-prefix=WARN %s 9# WARN: warning: -umbrella used, but not creating dylib 10# RUN: llvm-otool -lv %t.so | FileCheck %s 11 12# CHECK: cmd LC_SUB_FRAMEWORK 13# CHECK-NEXT: cmdsize 32 14# CHECK-NEXT: umbrella umbrella.dylib (offset 12) 15 16.globl __Z3foo 17__Z3foo: 18 ret 19