blob: 9bac39053d67594b84a41d52be36f9fa9396f055 [file] [log] [blame]
## Make sure the darwin format specifics are preserved when updating archives.
# RUN: rm -rf %t && mkdir -p %t
# RUN: yaml2obj %p/Inputs/macho.yaml > %t/dup.o
## Create the archive with a duplicate object to ensure that darwin specific
## incrementing timestamps are used.
# RUN: llvm-ar --format=darwin crD %t/lib.a %t/dup.o %t/dup.o
# RUN: cp %t/lib.a %t/lib.copy.a
## Replace an object file in the archive to force a re-write.
# RUN: llvm-ar crD %t/lib.a %t/dup.o
# RUN: obj2yaml %t/lib.a | FileCheck --implicit-check-not=LastModified %s
# CHECK: LastModified: '1'
# CHECK: LastModified: '2'