Make sure ar is creating a new file instead of updating an existing one.
[oota-llvm.git] / test / Object / nm-archive.test
1 RUN: llvm-nm %p/Inputs/archive-test.a-coff-i386 \
2 RUN:         | FileCheck %s -check-prefix COFF
3 RUN: llvm-as %p/Inputs/trivial.ll -o=%t1
4 RUN: rm -f %t2
5 RUN: llvm-ar rcs %t2 %t1
6 RUN: llvm-nm %t2 | FileCheck %s -check-prefix BITCODE
7
8
9 COFF: trivial-object-test.coff-i386:
10 COFF-NEXT: 00000000 d .data
11 COFF-NEXT: 00000000 t .text
12 COFF-NEXT: 00000000 d L_.str
13 COFF-NEXT:          U _SomeOtherFunction
14 COFF-NEXT: 00000000 T _main
15 COFF-NEXT:          U _puts
16
17 BITCODE:          U SomeOtherFunction
18 BITCODE-NEXT:          T main
19 BITCODE-NEXT:          U puts