1 RUN: llvm-nm %p/Inputs/trivial-object-test.coff-i386 \
2 RUN: | FileCheck %s -check-prefix COFF
3 RUN: llvm-nm %p/Inputs/trivial-object-test.coff-x86-64 \
4 RUN: | FileCheck %s -check-prefix COFF
5 RUN: llvm-nm %p/Inputs/trivial-object-test.elf-i386 \
6 RUN: | FileCheck %s -check-prefix ELF
7 RUN: llvm-nm %p/Inputs/trivial-object-test.elf-x86-64 \
8 RUN: | FileCheck %s -check-prefix ELF
9 RUN: llvm-nm %p/Inputs/trivial-object-test.macho-i386 \
10 RUN: | FileCheck %s -check-prefix macho
11 RUN: llvm-nm %p/Inputs/trivial-object-test.macho-x86-64 \
12 RUN: | FileCheck %s -check-prefix macho64
14 COFF: 00000000 d .data
15 COFF: 00000000 t .text
16 COFF: 00000000 d L{{_?}}.str
17 COFF: U {{_?}}SomeOtherFunction
18 COFF: 00000000 T {{_?}}main
21 ELF: U SomeOtherFunction
26 macho: 00000000 U _SomeOtherFunction
27 macho: 00000000 s _main
28 macho: 00000000 U _puts
30 macho64: 00000028 s L_.str
31 macho64: 00000000 u _SomeOtherFunction
32 macho64: 00000000 s _main
33 macho64: 00000000 u _puts