blob: e906791787a23dd93b359562b5accf8332318b2e [file] [log] [blame]
Rafael Espindola23a76be2017-02-21 20:40:54 +00001Test that only the darwin format needs to modify archive members to
2avoid a ld64 bug.
3
4RUN: echo foo > %t.o
5
6RUN: rm -f %t.a
7RUN: llvm-ar -format=bsd rc %t.a %t.o
8RUN: llvm-ar p %t.a > %bsd.o
9RUN: cmp %bsd.o %t.o
10
11RUN: rm -f %t.a
12RUN: llvm-ar -format=gnu rc %t.a %t.o
13RUN: llvm-ar p %t.a > %gnu.o
14RUN: cmp %gnu.o %t.o
15
16RUN: rm -f %t.a
17RUN: llvm-ar -format=darwin rc %t.a %t.o
18RUN: llvm-ar p %t.a > %darwin.o
19RUN: not cmp %darwin.o %t.o