brintos

brintos / llvm-project-archived public Read only

0
0
Text · 749 B · f6aafcb Raw
22 lines · plain
1Test that darwin archives are created with distinct (name,timestamp) pairs.2 3The two members with the duplicated name "test.o" must have unique4non-zero timestamps, while baz.o, being unique, remains a zero5timestamp.6 7RUN: mkdir -p %t.dir/sub18RUN: printf test > %t.dir/test.o9RUN: printf sub1/test > %t.dir/sub1/test.o10RUN: printf baz > %t.dir/baz.o11 12RUN: rm -f %t.a13RUN: llvm-ar --format=darwin rcs %t.a %t.dir/sub1/test.o %t.dir/test.o %t.dir/baz.o14RUN: FileCheck -strict-whitespace %s < %t.a15 16CHECK:#1/12           1           0     0     644     28        `17CHECK-NEXT:test.o18CHECK:#1/12           2           0     0     644     20        `19CHECK-NEXT:test.o20CHECK:#1/12           0           0     0     644     20        `21CHECK-NEXT:baz.o22