70 lines · plain
1RUN: rm -rf %t2RUN: mkdir -p %t3 4RUN: cp %p/../Inputs/basic.macho.x86_64 %t/basic.macho.x86_645RUN: cp %p/../Inputs/basic-archive.macho.x86_64 %t/basic-archive.macho.x86_646RUN: cp %p/../Inputs/basic-lto.macho.x86_64 %t/basic-lto.macho.x86_647RUN: cp %p/../Inputs/basic-lto-dw4.macho.x86_64 %t/basic-lto-dw4.macho.x86_648 9# Multiple inputs in flat mode10RUN: dsymutil -f -oso-prepend-path=%p/.. %t/basic.macho.x86_64 %t/basic-archive.macho.x86_64 %t/basic-lto.macho.x86_64 %t/basic-lto-dw4.macho.x86_6411RUN: llvm-dwarfdump -a %t/basic.macho.x86_64.dwarf \12RUN: | FileCheck %S/basic-linking-x86.test --check-prefixes=CHECK,BASIC13RUN: llvm-dwarfdump -a %t/basic-archive.macho.x86_64.dwarf \14RUN: | FileCheck %S/basic-linking-x86.test --check-prefixes=CHECK,ARCHIVE15RUN: llvm-dwarfdump -a %t/basic-lto.macho.x86_64.dwarf | FileCheck %S/basic-lto-linking-x86.test16RUN: llvm-dwarfdump -a %t/basic-lto-dw4.macho.x86_64.dwarf | FileCheck %S/basic-lto-dw4-linking-x86.test17 18# Multiple inputs that end up in the same named bundle19RUN: dsymutil -oso-prepend-path=%p/.. %t/basic.macho.x86_64 %t/basic-archive.macho.x86_64 %t/basic-lto.macho.x86_64 %t/basic-lto-dw4.macho.x86_64 -o %t.dSYM20RUN: llvm-dwarfdump -a %t.dSYM/Contents/Resources/DWARF/basic.macho.x86_64 \21RUN: | FileCheck %S/basic-linking-x86.test --check-prefixes=CHECK,BASIC22RUN: llvm-dwarfdump -a %t.dSYM/Contents/Resources/DWARF/basic-archive.macho.x86_64 \23RUN: | FileCheck %S/basic-linking-x86.test --check-prefixes=CHECK,ARCHIVE24RUN: llvm-dwarfdump -a %t.dSYM/Contents/Resources/DWARF/basic-lto.macho.x86_64 | FileCheck %S/basic-lto-linking-x86.test25RUN: llvm-dwarfdump -a %t.dSYM/Contents/Resources/DWARF/basic-lto-dw4.macho.x86_64 | FileCheck %S/basic-lto-dw4-linking-x86.test26 27# Multiple inputs in a named bundle in flat mode... impossible.28RUN: not dsymutil -f -oso-prepend-path=%p/.. %t/basic.macho.x86_64 %t/basic-archive.macho.x86_64 %t/basic-lto.macho.x86_64 %t/basic-lto-dw4.macho.x86_64 -o %t.dSYM 2>&1 | FileCheck %s29 30## ---------------------------------------31## Repeat the same steps for --linker parallel32 33RUN: rm -rf %t34RUN: mkdir -p %t35 36RUN: cat %p/../Inputs/basic.macho.x86_64 > %t/basic.macho.x86_6437RUN: cat %p/../Inputs/basic-archive.macho.x86_64 > %t/basic-archive.macho.x86_6438RUN: cat %p/../Inputs/basic-lto.macho.x86_64 > %t/basic-lto.macho.x86_6439RUN: cat %p/../Inputs/basic-lto-dw4.macho.x86_64 > %t/basic-lto-dw4.macho.x86_6440 41# Multiple inputs in flat mode42RUN: dsymutil --linker parallel -f -oso-prepend-path=%p/.. \43RUN: %t/basic.macho.x86_64 %t/basic-archive.macho.x86_64 \44RUN: %t/basic-lto.macho.x86_64 %t/basic-lto-dw4.macho.x86_6445RUN: llvm-dwarfdump -a %t/basic.macho.x86_64.dwarf \46RUN: | FileCheck %S/basic-linking-x86.test --check-prefixes=CHECK,BASIC47RUN: llvm-dwarfdump -a %t/basic-archive.macho.x86_64.dwarf \48RUN: | FileCheck %S/basic-linking-x86.test --check-prefixes=CHECK,ARCHIVE49RUN: llvm-dwarfdump -a %t/basic-lto.macho.x86_64.dwarf | FileCheck %S/basic-lto-linking-x86.test50RUN: llvm-dwarfdump -a %t/basic-lto-dw4.macho.x86_64.dwarf | FileCheck %S/basic-lto-dw4-linking-x86.test51 52# Multiple inputs that end up in the same named bundle53RUN: dsymutil --linker parallel -oso-prepend-path=%p/.. %t/basic.macho.x86_64 \54RUN: %t/basic-archive.macho.x86_64 %t/basic-lto.macho.x86_64 \55RUN: %t/basic-lto-dw4.macho.x86_64 -o %t.dSYM56RUN: llvm-dwarfdump -a %t.dSYM/Contents/Resources/DWARF/basic.macho.x86_64 \57RUN: | FileCheck %S/basic-linking-x86.test --check-prefixes=CHECK,BASIC58RUN: llvm-dwarfdump -a %t.dSYM/Contents/Resources/DWARF/basic-archive.macho.x86_64 \59RUN: | FileCheck %S/basic-linking-x86.test --check-prefixes=CHECK,ARCHIVE60RUN: llvm-dwarfdump -a %t.dSYM/Contents/Resources/DWARF/basic-lto.macho.x86_64 | FileCheck %S/basic-lto-linking-x86.test61RUN: llvm-dwarfdump -a %t.dSYM/Contents/Resources/DWARF/basic-lto-dw4.macho.x86_64 | FileCheck %S/basic-lto-dw4-linking-x86.test62 63# Multiple inputs in a named bundle in flat mode... impossible.64RUN: not dsymutil --linker parallel -f -oso-prepend-path=%p/.. \65RUN: %t/basic.macho.x86_64 %t/basic-archive.macho.x86_64 \66RUN: %t/basic-lto.macho.x86_64 %t/basic-lto-dw4.macho.x86_64 \67RUN: -o %t.dSYM 2>&1 | FileCheck %s68 69CHECK: error: cannot use -o with multiple inputs in flat mode70