xref: /aosp_15_r20/external/llvm/test/Object/archive-replace-pos.test (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard WorkerTest adding a member to a particular position
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard WorkerRUN: touch %t.foo
4*9880d681SAndroid Build Coastguard WorkerRUN: touch %t.bar
5*9880d681SAndroid Build Coastguard WorkerRUN: rm -f %t.a
6*9880d681SAndroid Build Coastguard WorkerRUN: llvm-ar rc %t.a %t.foo %t.bar
7*9880d681SAndroid Build Coastguard WorkerRUN: touch %t.zed
8*9880d681SAndroid Build Coastguard WorkerRUN: llvm-ar rca %t.foo %t.a %t.zed
9*9880d681SAndroid Build Coastguard WorkerRUN: llvm-ar t %t.a | FileCheck %s
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard WorkerCHECK: .foo
12*9880d681SAndroid Build Coastguard WorkerCHECK-NEXT: .zed
13*9880d681SAndroid Build Coastguard WorkerCHECK-NEXT: .bar
14*9880d681SAndroid Build Coastguard Worker
15*9880d681SAndroid Build Coastguard WorkerRUN: rm -f %t.a
16*9880d681SAndroid Build Coastguard WorkerRUN: llvm-ar rc %t.a %t.zed %t.foo %t.bar
17*9880d681SAndroid Build Coastguard WorkerRUN: llvm-ar t %t.a | FileCheck --check-prefix=CHECK2 %s
18*9880d681SAndroid Build Coastguard Worker
19*9880d681SAndroid Build Coastguard WorkerCHECK2: .zed
20*9880d681SAndroid Build Coastguard WorkerCHECK2-NEXT: .foo
21*9880d681SAndroid Build Coastguard WorkerCHECK2-NEXT: .bar
22*9880d681SAndroid Build Coastguard Worker
23*9880d681SAndroid Build Coastguard WorkerRUN: llvm-ar rca %t.foo %t.a %t.zed
24*9880d681SAndroid Build Coastguard WorkerRUN: llvm-ar t %t.a | FileCheck --check-prefix=CHECK3 %s
25*9880d681SAndroid Build Coastguard WorkerCHECK3: .foo
26*9880d681SAndroid Build Coastguard WorkerCHECK3-NEXT: .zed
27*9880d681SAndroid Build Coastguard WorkerCHECK3-NEXT: .bar
28*9880d681SAndroid Build Coastguard Worker
29*9880d681SAndroid Build Coastguard WorkerRUN: llvm-ar rc %t.a %t.zed
30*9880d681SAndroid Build Coastguard WorkerRUN: llvm-ar t %t.a | FileCheck --check-prefix=CHECK3 %s
31