2017-02-21 21:40:54 +01:00
|
|
|
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
|
2019-05-01 17:31:15 +02:00
|
|
|
RUN: llvm-ar --format=bsd rc %t.a %t.o
|
2017-02-22 10:02:27 +01:00
|
|
|
RUN: llvm-ar p %t.a > %t.bsd.o
|
|
|
|
RUN: cmp %t.bsd.o %t.o
|
2017-02-21 21:40:54 +01:00
|
|
|
|
|
|
|
RUN: rm -f %t.a
|
2019-05-01 17:31:15 +02:00
|
|
|
RUN: llvm-ar --format=gnu rc %t.a %t.o
|
2017-02-22 10:02:27 +01:00
|
|
|
RUN: llvm-ar p %t.a > %t.gnu.o
|
|
|
|
RUN: cmp %t.gnu.o %t.o
|
2017-02-21 21:40:54 +01:00
|
|
|
|
|
|
|
RUN: rm -f %t.a
|
2019-05-01 17:31:15 +02:00
|
|
|
RUN: llvm-ar --format=darwin rc %t.a %t.o
|
2017-02-22 10:02:27 +01:00
|
|
|
RUN: llvm-ar p %t.a > %t.darwin.o
|
|
|
|
RUN: not cmp %t.darwin.o %t.o
|