Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / MachO / rpath.s
blob5b404a36b26b0f6efcdc9031852aa20272101ab8
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o
3 # RUN: %lld -o %t %t.o
5 ## Check that -rpath generates LC_RPATH.
6 # RUN: %lld -o %t %t.o -rpath /some/rpath -rpath /another/rpath
7 # RUN: llvm-objdump --macho --all-headers %t | FileCheck %s
8 # CHECK: LC_RPATH
9 # CHECK-NEXT: cmdsize 24
10 # CHECK-NEXT: path /some/rpath
11 # CHECK: LC_RPATH
12 # CHECK-NEXT: cmdsize 32
13 # CHECK-NEXT: path /another/rpath
15 .text
16 .global _main
17 _main:
18 mov $0, %rax
19 ret