mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 22:07:27 +00:00
51392a079e
This matches gnu archive behavior and since archive member order can change which member is used, not changing the order on replacement looks like the right thing to do. This patch also refactors the logic for which archive member to keep and whether to move it to a helper function (computeInsertAction). The nesting in computeNewArchiveMembers was getting a bit confusing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186829 91177308-0d34-0410-b5e6-96231b3b80d8
31 lines
665 B
Plaintext
31 lines
665 B
Plaintext
Test adding a member to a particular position
|
|
|
|
RUN: touch %t.foo
|
|
RUN: touch %t.bar
|
|
RUN: rm -f %t.a
|
|
RUN: llvm-ar rc %t.a %t.foo %t.bar
|
|
RUN: touch %t.zed
|
|
RUN: llvm-ar rca %t.foo %t.a %t.zed
|
|
RUN: llvm-ar t %t.a | FileCheck %s
|
|
|
|
CHECK: .foo
|
|
CHECK-NEXT: .zed
|
|
CHECK-NEXT: .bar
|
|
|
|
RUN: rm -f %t.a
|
|
RUN: llvm-ar rc %t.a %t.zed %t.foo %t.bar
|
|
RUN: llvm-ar t %t.a | FileCheck --check-prefix=CHECK2 %s
|
|
|
|
CHECK2: .zed
|
|
CHECK2-NEXT: .foo
|
|
CHECK2-NEXT: .bar
|
|
|
|
RUN: llvm-ar rca %t.foo %t.a %t.zed
|
|
RUN: llvm-ar t %t.a | FileCheck --check-prefix=CHECK3 %s
|
|
CHECK3: .foo
|
|
CHECK3-NEXT: .zed
|
|
CHECK3-NEXT: .bar
|
|
|
|
RUN: llvm-ar rc %t.a %t.zed
|
|
RUN: llvm-ar t %t.a | FileCheck --check-prefix=CHECK3 %s
|