llvm-project
27 строк · 921.0 Байт
1# REQUIRES: x86
2
3# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t.o %s
4
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
9
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
15
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
19
20# WARN: warning: -mark_dead_strippable_dylib: ignored, only has effect with -dylib
21
22# NO-DS-NOT: DEAD_STRIPPABLE_DYLIB
23# DS: DEAD_STRIPPABLE_DYLIB
24
25.globl _main
26_main:
27ret
28