[llvm] r200803 - Add a test for common symbols in coff.
Rafael Espindola
rafael.espindola at gmail.com
Tue Feb 4 15:18:52 PST 2014
Author: rafael
Date: Tue Feb 4 17:18:52 2014
New Revision: 200803
URL: http://llvm.org/viewvc/llvm-project?rev=200803&view=rev
Log:
Add a test for common symbols in coff.
Added:
llvm/trunk/test/Object/Inputs/common.coff-i386
Modified:
llvm/trunk/test/Object/nm-trivial-object.test
Added: llvm/trunk/test/Object/Inputs/common.coff-i386
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Object/Inputs/common.coff-i386?rev=200803&view=auto
==============================================================================
Binary files llvm/trunk/test/Object/Inputs/common.coff-i386 (added) and llvm/trunk/test/Object/Inputs/common.coff-i386 Tue Feb 4 17:18:52 2014 differ
Modified: llvm/trunk/test/Object/nm-trivial-object.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Object/nm-trivial-object.test?rev=200803&r1=200802&r2=200803&view=diff
==============================================================================
--- llvm/trunk/test/Object/nm-trivial-object.test (original)
+++ llvm/trunk/test/Object/nm-trivial-object.test Tue Feb 4 17:18:52 2014
@@ -10,6 +10,8 @@ RUN: llvm-nm %p/Inputs/trivial-object-te
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
More information about the llvm-commits
mailing list