1 RUN: llvm-nm %p/Inputs/archive-test.a-coff-i386 \
2 RUN: | FileCheck %s -check-prefix COFF
4 RUN: llvm-as %p/Inputs/trivial.ll -o=%t1
6 RUN: llvm-ar rcs %t2 %t1
7 RUN: llvm-nm %t2 | FileCheck %s -check-prefix BITCODE
9 Test we don't error with an archive with no symtab.
10 RUN: llvm-nm %p/Inputs/archive-test.a-gnu-no-symtab
12 COFF: trivial-object-test.coff-i386:
13 COFF-NEXT: 00000000 d .data
14 COFF-NEXT: 00000000 t .text
15 COFF-NEXT: 00000000 d L_.str
16 COFF-NEXT: U _SomeOtherFunction
17 COFF-NEXT: 00000000 T _main
20 BITCODE: U SomeOtherFunction