brintos

brintos / llvm-project-archived public Read only

0
0
Text · 966 B · 92b194c Raw
27 lines · plain
1## Ensure that we generate a GNU style archive if the first input is a bitcode2## file with a GNU target triple (absence of __.SYMDEF in the archive).3 4# RUN: echo -e 'target triple = "x86_64-unknown-linux-gnu" \n define void @_Z3foov() { ret void }' > %t.gnu.ll5# RUN: llvm-as -o %t.gnu.o %t.gnu.ll6 7# RUN: rm -f %t.ar8# RUN: llvm-ar crs %t.ar %t.gnu.o9# RUN: not grep -q __.SYMDEF %t.ar10 11## Ensure that we generate a MachO style archive if the first input is a12## bitcode file with a MachO target triple (presence of __.SYMDEF in the13## archive).14 15# RUN: echo -e 'target triple = "x86_64-apple-macosx10.9" \n define void @_Z3foov() { ret void }' > %t.macho.ll16# RUN: llvm-as -o %t.macho.o %t.macho.ll17 18# RUN: rm -f %t.ar19# RUN: llvm-ar crs %t.ar %t.macho.o20# RUN: grep -q __.SYMDEF %t.ar21 22## Verify that archive format is based on the first input's target triple.23 24# RUN: rm -f %t.ar25# RUN: llvm-ar crs %t.ar %t.gnu.o %t.macho.o26# RUN: not grep -q __.SYMDEF %t.ar27