1 # REQUIRES: x86-registered-target
3 ## Make sure the darwin format specifics are preserved when updating archives.
5 # RUN: rm -rf %t && mkdir -p %t
6 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %p/Inputs/macho.64.s -o %t/dup.o
7 # RUN: llvm-ar --format=darwin crD %t/lib.a %t/dup.o %t/dup.o
8 # RUN: llvm-objcopy %t/lib.a %t/lib.copy.a
9 # RUN: obj2yaml %t/lib.copy.a | FileCheck --implicit-check-not=LastModified %s
11 # CHECK: LastModified: '1'
12 # CHECK: LastModified: '2'