3 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t.o %s
5 # RUN: %no-fatal-warnings-lld -o %t.exec %t.o -mark_dead_strippable_dylib 2>&1 \
6 # RUN: | FileCheck --check-prefix=WARN %s
7 # RUN: llvm-objdump --macho --private-header %t.exec \
8 # RUN: | FileCheck --check-prefix=NO-DS %s
10 # RUN: %no-fatal-warnings-lld -bundle -o %t.bundle %t.o \
11 # RUN: -mark_dead_strippable_dylib 2>&1 \
12 # RUN: | FileCheck --check-prefix=WARN %s
13 # RUN: llvm-objdump --macho --private-header %t.bundle \
14 # RUN: | FileCheck --check-prefix=NO-DS %s
16 # RUN: %lld -dylib -o %t.dylib %t.o -mark_dead_strippable_dylib 2>&1
17 # RUN: llvm-objdump --macho --private-header %t.dylib \
18 # RUN: | FileCheck --check-prefix=DS %s
20 # WARN: warning: -mark_dead_strippable_dylib: ignored, only has effect with -dylib
22 # NO-DS-NOT: DEAD_STRIPPABLE_DYLIB
23 # DS: DEAD_STRIPPABLE_DYLIB