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