2013-07-19 21:23:28 +00:00
|
|
|
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
|
2013-07-21 12:58:07 +00:00
|
|
|
|
2013-07-22 12:41:04 +00:00
|
|
|
RUN: rm -f %t.a
|
|
|
|
RUN: llvm-ar rc %t.a %t.zed %t.foo %t.bar
|
2013-07-21 12:58:07 +00:00
|
|
|
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
|
2013-07-22 15:11:51 +00:00
|
|
|
|
|
|
|
RUN: llvm-ar rc %t.a %t.zed
|
|
|
|
RUN: llvm-ar t %t.a | FileCheck --check-prefix=CHECK3 %s
|