Matt Beaumont-Gay | 11f9987 | 2011-10-31 23:56:52 +0000 | [diff] [blame] | 1 | RUN: llvm-nm %p/Inputs/trivial-object-test.coff-i386 \ |
Michael J. Spencer | db26073 | 2011-01-20 06:39:15 +0000 | [diff] [blame] | 2 | RUN: | FileCheck %s -check-prefix COFF |
Matt Beaumont-Gay | 11f9987 | 2011-10-31 23:56:52 +0000 | [diff] [blame] | 3 | RUN: llvm-nm %p/Inputs/trivial-object-test.coff-x86-64 \ |
Michael J. Spencer | db26073 | 2011-01-20 06:39:15 +0000 | [diff] [blame] | 4 | RUN: | FileCheck %s -check-prefix COFF |
Matt Beaumont-Gay | 11f9987 | 2011-10-31 23:56:52 +0000 | [diff] [blame] | 5 | RUN: llvm-nm %p/Inputs/trivial-object-test.elf-i386 \ |
Michael J. Spencer | db26073 | 2011-01-20 06:39:15 +0000 | [diff] [blame] | 6 | RUN: | FileCheck %s -check-prefix ELF |
Matt Beaumont-Gay | 11f9987 | 2011-10-31 23:56:52 +0000 | [diff] [blame] | 7 | RUN: llvm-nm %p/Inputs/trivial-object-test.elf-x86-64 \ |
Michael J. Spencer | db26073 | 2011-01-20 06:39:15 +0000 | [diff] [blame] | 8 | RUN: | FileCheck %s -check-prefix ELF |
Danil Malyshev | b0436a7 | 2011-11-29 17:40:10 +0000 | [diff] [blame] | 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 |
Michael J. Spencer | db26073 | 2011-01-20 06:39:15 +0000 | [diff] [blame] | 13 | |
| 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 |
| 19 | COFF: U {{_?}}puts |
| 20 | |
| 21 | ELF: U SomeOtherFunction |
| 22 | ELF: 00000000 T main |
| 23 | ELF: U puts |
Danil Malyshev | b0436a7 | 2011-11-29 17:40:10 +0000 | [diff] [blame] | 24 | |
| 25 | |
| 26 | macho: 00000000 U _SomeOtherFunction |
| 27 | macho: 00000000 s _main |
| 28 | macho: 00000000 U _puts |
| 29 | |
| 30 | macho64: 00000028 s L_.str |
| 31 | macho64: 00000000 u _SomeOtherFunction |
| 32 | macho64: 00000000 s _main |
| 33 | macho64: 00000000 u _puts |