[PowerPC] Support .llong and fix .word
[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
4 RUN: llvm-as %p/Inputs/trivial.ll -o=%t1
5 RUN: rm -f %t2
6 RUN: llvm-ar rcs %t2 %t1
7 RUN: llvm-nm %t2 | FileCheck %s -check-prefix BITCODE
8
9 Test we don't error with an archive with no symtab.
10 RUN: llvm-nm %p/Inputs/archive-test.a-gnu-no-symtab
11
12 Or in an archive with no symtab or string table.
13 RUN: llvm-nm %p/Inputs/archive-test.a-gnu-minimal
14
15 COFF: trivial-object-test.coff-i386:
16 COFF-NEXT: 00000000 d .data
17 COFF-NEXT: 00000000 t .text
18 COFF-NEXT: 00000000 d L_.str
19 COFF-NEXT:          U _SomeOtherFunction
20 COFF-NEXT: 00000000 T _main
21 COFF-NEXT:          U _puts
22
23 BITCODE:          U SomeOtherFunction
24 BITCODE-NEXT:          T main
25 BITCODE-NEXT:          U puts