blob: 343f51ef60afb38ded3640129f499819b1c0b7f4 [file] [log] [blame]
Rafael Espindola13f0c802017-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
Benjamin Kramer5edec692017-02-22 09:02:27 +00008RUN: llvm-ar p %t.a > %t.bsd.o
9RUN: cmp %t.bsd.o %t.o
Rafael Espindola13f0c802017-02-21 20:40:54 +000010
11RUN: rm -f %t.a
12RUN: llvm-ar -format=gnu rc %t.a %t.o
Benjamin Kramer5edec692017-02-22 09:02:27 +000013RUN: llvm-ar p %t.a > %t.gnu.o
14RUN: cmp %t.gnu.o %t.o
Rafael Espindola13f0c802017-02-21 20:40:54 +000015
16RUN: rm -f %t.a
17RUN: llvm-ar -format=darwin rc %t.a %t.o
Benjamin Kramer5edec692017-02-22 09:02:27 +000018RUN: llvm-ar p %t.a > %t.darwin.o
19RUN: not cmp %t.darwin.o %t.o