Add a test for common symbols in coff.

llvm-svn: 200803
This commit is contained in:
Rafael Espindola 2014-02-04 23:18:52 +00:00
parent d33bc83b50
commit 14250cad7d
2 changed files with 11 additions and 0 deletions

Binary file not shown.

View File

@ -10,6 +10,8 @@ RUN: llvm-nm %p/Inputs/trivial-object-test.macho-i386 \
RUN: | FileCheck %s -check-prefix macho
RUN: llvm-nm %p/Inputs/trivial-object-test.macho-x86-64 \
RUN: | FileCheck %s -check-prefix macho64
RUN: llvm-nm %p/Inputs/common.coff-i386 \
RUN: | FileCheck %s -check-prefix COFF-COMMON
COFF: 00000000 d .data
COFF: 00000000 t .text
@ -18,6 +20,15 @@ COFF: U {{_?}}SomeOtherFunction
COFF: 00000000 T {{_?}}main
COFF: U {{_?}}puts
COFF-COMMON: 00000000 b .bss
COFF-COMMON-NEXT: 00000000 d .data
COFF-COMMON-NEXT: 00000000 d .drectve
COFF-COMMON-NEXT: 00000000 n .file
COFF-COMMON-NEXT: 00000000 r .rdata$zzz
COFF-COMMON-NEXT: 00000000 t .text
COFF-COMMON-NEXT: C _a
ELF-NOT: U
ELF: U SomeOtherFunction
ELF: 00000000 T main