Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / MachO / umbrella.s
blob7f4d25f1c48f2343280a190be0ba804318ffb286
1 # REQUIRES: x86
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
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
12 # CHECK: cmd LC_SUB_FRAMEWORK
13 # CHECK-NEXT: cmdsize 32
14 # CHECK-NEXT: umbrella umbrella.dylib (offset 12)
16 .globl __Z3foo
17 __Z3foo:
18 ret