1RUN: yaml2obj %p/Inputs/COFF/i386.yaml | llvm-objdump -t - \
2RUN:              | FileCheck %s -check-prefix COFF-i386
3RUN: llvm-objdump -t %p/Inputs/trivial-object-test.elf-i386 \
4RUN:              | FileCheck %s -check-prefix ELF-i386
5RUN: llvm-objdump -t %p/Inputs/trivial-object-test.macho-i386 \
6RUN:              | FileCheck %s -check-prefix macho-i386
7RUN: llvm-objdump -t %p/Inputs/shared-object-test.elf-i386 \
8RUN:              | FileCheck %s -check-prefix ELF-shared
9
10COFF-i386: file format
11COFF-i386: SYMBOL TABLE:
12COFF-i386: [  0](sec  1)(fl 0x00)(ty   0)(scl   3) (nx 1) 0x00000000 .text
13COFF-i386: AUX scnlen 0x24 nreloc 3 nlnno 0 checksum 0x0 assoc 1 comdat 0
14COFF-i386: [  2](sec  2)(fl 0x00)(ty   0)(scl   3) (nx 1) 0x00000000 .data
15COFF-i386: AUX scnlen 0xd nreloc 0 nlnno 0 checksum 0x0 assoc 2 comdat 0
16COFF-i386: [  4](sec  1)(fl 0x00)(ty  20)(scl   2) (nx 0) 0x00000000 _main
17COFF-i386: [  5](sec  2)(fl 0x00)(ty   0)(scl   3) (nx 0) 0x00000000 L_.str
18COFF-i386: [  6](sec  0)(fl 0x00)(ty   0)(scl   2) (nx 0) 0x00000000 _puts
19COFF-i386: [  7](sec  0)(fl 0x00)(ty   0)(scl   2) (nx 0) 0x00000000 _SomeOtherFunction
20
21ELF-i386: trivial-object-test.elf-i386:     file format
22ELF-i386: SYMBOL TABLE:
23ELF-i386: 00000000 l    df *ABS*  00000000 trivial-object-test.s
24ELF-i386: 00000000 l    d  .text  00000000 .text
25ELF-i386: 00000024 l    d  .rodata.str1.1 00000000 .rodata.str1.1
26ELF-i386: 00000031 l    d  .note.GNU-stack        00000000 .note.GNU-stack
27ELF-i386: 00000000 g     F .text  00000024 main
28ELF-i386: 00000000         *UND*  00000000 SomeOtherFunction
29ELF-i386: 00000000         *UND*  00000000 puts
30
31macho-i386: trivial-object-test.macho-i386:        file format Mach-O 32-bit i386
32macho-i386: SYMBOL TABLE:
33macho-i386: 00000000 g     F __TEXT,__text  00000024 _main
34macho-i386: 00000000         *UND*  00000000 _SomeOtherFunction
35macho-i386: 00000000         *UND*  00000000 _puts
36
37ELF-shared: shared-object-test.elf-i386:     file format
38ELF-shared: SYMBOL TABLE:
39ELF-shared: 00000200 l     F .text 00000003 local_func
40ELF-shared: 000012c4 g       .data 00000004 defined_sym
41ELF-shared: 000001f0 g     F .text 00000003 global_func
42