2011-10-31 23:56:52 +00:00
|
|
|
RUN: llvm-nm %p/Inputs/archive-test.a-coff-i386 \
|
2011-09-27 19:37:18 +00:00
|
|
|
RUN: | FileCheck %s -check-prefix COFF
|
2011-10-31 23:56:52 +00:00
|
|
|
RUN: llvm-as %p/Inputs/trivial.ll -o=%t1
|
2013-06-20 13:44:49 +00:00
|
|
|
RUN: rm -f %t2
|
2011-10-25 22:30:58 +00:00
|
|
|
RUN: llvm-ar rcs %t2 %t1
|
|
|
|
RUN: llvm-nm %t2 | FileCheck %s -check-prefix BITCODE
|
2011-09-27 19:37:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
COFF: trivial-object-test.coff-i386:
|
|
|
|
COFF-NEXT: 00000000 d .data
|
|
|
|
COFF-NEXT: 00000000 t .text
|
|
|
|
COFF-NEXT: 00000000 d L_.str
|
|
|
|
COFF-NEXT: U _SomeOtherFunction
|
|
|
|
COFF-NEXT: 00000000 T _main
|
|
|
|
COFF-NEXT: U _puts
|
|
|
|
|
|
|
|
BITCODE: U SomeOtherFunction
|
|
|
|
BITCODE-NEXT: T main
|
|
|
|
BITCODE-NEXT: U puts
|