1 Test the 'u' option of llvm-ar
8 Create an achive with the newest file
9 RUN: llvm-ar r %t.a %p/Inputs/Other/evenlen
10 RUN: llvm-ar p %t.a | FileCheck --check-prefix=NEWER %s
12 Check that without the 'u' option the member is replaced with an older file.
13 RUN: llvm-ar r %t.a %p/Inputs/evenlen
14 RUN: llvm-ar p %t.a | FileCheck --check-prefix=OLDER %s
16 Check that with the 'u' option the member is replaced with a newer file.
17 RUN: llvm-ar ru %t.a %p/Inputs/Other/evenlen
18 RUN: llvm-ar p %t.a | FileCheck --check-prefix=NEWER %s
20 Check that with the 'u' option the member is not replaced with an older file.
21 RUN: llvm-ar ru %t.a %p/Inputs/evenlen
22 RUN: llvm-ar p %t.a | FileCheck --check-prefix=NEWER %s