• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Test that darwin archives are created with distinct (name,timestamp) pairs.
2
3The two members with the duplicated name "test.o" must have unique
4non-zero timestamps, while baz.o, being unique, remains a zero
5timestamp.
6
7RUN: mkdir -p %T/sub1
8RUN: printf test > %T/test.o
9RUN: printf sub1/test > %T/sub1/test.o
10RUN: printf baz > %T/baz.o
11
12RUN: rm -f %t.a
13RUN: llvm-ar --format=darwin rcs %t.a %T/sub1/test.o %T/test.o %T/baz.o
14RUN: FileCheck -strict-whitespace %s < %t.a
15
16CHECK:#1/12           1           0     0     644     28        `
17CHECK-NEXT:test.o
18CHECK:#1/12           2           0     0     644     20        `
19CHECK-NEXT:test.o
20CHECK:#1/12           0           0     0     644     20        `
21CHECK-NEXT:baz.o
22