Compiler projects using llvm
## 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'