aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/Object/archive-pad.test
blob: a24c8d389c7a8f76a03ea4ac83c40cb20c79f2cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Test that only the darwin format needs to modify archive members to
avoid a ld64 bug.

RUN: echo foo > %t.o

RUN: rm -f %t.a
RUN: llvm-ar --format=bsd rc %t.a %t.o
RUN: llvm-ar p %t.a > %t.bsd.o
RUN: cmp %t.bsd.o %t.o

RUN: rm -f %t.a
RUN: llvm-ar --format=gnu rc %t.a %t.o
RUN: llvm-ar p %t.a > %t.gnu.o
RUN: cmp %t.gnu.o %t.o

RUN: rm -f %t.a
RUN: llvm-ar --format=darwin rc %t.a %t.o
RUN: llvm-ar p %t.a > %t.darwin.o
RUN: not cmp %t.darwin.o %t.o