diff --git a/test/Object/Inputs/common.coff-i386 b/test/Object/Inputs/common.coff-i386 new file mode 100644 index 00000000000..a61d76c1f9d Binary files /dev/null and b/test/Object/Inputs/common.coff-i386 differ diff --git a/test/Object/nm-trivial-object.test b/test/Object/nm-trivial-object.test index 748d6f20d51..d13d217d2f1 100644 --- a/test/Object/nm-trivial-object.test +++ b/test/Object/nm-trivial-object.test @@ -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