3 ## This test verifies that the paths in -filelist get processed in command-line
6 # RUN: rm -rf %t; split-file %s %t
7 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/first.s -o %t/first.o
8 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/second.s -o %t/second.o
9 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/test.s -o %t/test.o
11 # FIRST: __TEXT,first _foo
12 # SECOND: __TEXT,second _foo
14 # RUN: echo "%t/first.o" > filelist
15 # RUN: echo "%t/second.o" >> filelist
16 # RUN: %lld -filelist filelist %t/test.o -o %t/test
17 # RUN: llvm-objdump --syms %t/test | FileCheck %s --check-prefix=FIRST
19 # RUN: echo "%t/second.o" > filelist
20 # RUN: echo "%t/first.o" >> filelist
21 # RUN: %lld -filelist filelist %t/test.o -o %t/test
22 # RUN: llvm-objdump --syms %t/test | FileCheck %s --check-prefix=SECOND
24 # RUN: echo "%t/first.o" > filelist
25 # RUN: %lld -filelist filelist %t/second.o %t/test.o -o %t/test
26 # RUN: llvm-objdump --syms %t/test | FileCheck %s --check-prefix=FIRST
27 # RUN: %lld %t/second.o -filelist filelist %t/test.o -o %t/test
28 # RUN: llvm-objdump --syms %t/test | FileCheck %s --check-prefix=SECOND
30 # RUN: echo "%t/first.o" > filelist-1
31 # RUN: echo "%t/second.o" > filelist-2
32 # RUN: %lld -filelist filelist-1 -filelist filelist-2 %t/test.o -o %t/test
33 # RUN: llvm-objdump --syms %t/test | FileCheck %s --check-prefix=FIRST
34 # RUN: %lld -filelist filelist-2 -filelist filelist-1 %t/test.o -o %t/test
35 # RUN: llvm-objdump --syms %t/test | FileCheck %s --check-prefix=SECOND
46 .section __TEXT,second