2011-11-01 00:56:52 +01:00
|
|
|
RUN: llvm-nm %p/Inputs/archive-test.a-coff-i386 \
|
2011-09-27 21:37:18 +02:00
|
|
|
RUN: | FileCheck %s -check-prefix COFF
|
2011-11-01 00:56:52 +01:00
|
|
|
RUN: llvm-as %p/Inputs/trivial.ll -o=%t1
|
2011-10-26 00:30:58 +02:00
|
|
|
RUN: llvm-ar rcs %t2 %t1
|
|
|
|
RUN: llvm-nm %t2 | FileCheck %s -check-prefix BITCODE
|
2011-09-27 21:37:18 +02: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
|